DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomGlobal Class / ReuseOnlyExactArraySize Property



In This Topic
    ReuseOnlyExactArraySize Property
    In This Topic
    Controls whether "Over-sized" arrays are used
    Syntax
    'Declaration
     
    
    Public Shared Property ReuseOnlyExactArraySize As Boolean
    'Usage
     
    
    Dim value As Boolean
     
    DicomGlobal.ReuseOnlyExactArraySize = value
     
    value = DicomGlobal.ReuseOnlyExactArraySize
    public static bool ReuseOnlyExactArraySize {get; set;}
    public:
    static property bool ReuseOnlyExactArraySize {
       bool get();
       void set (    bool value);
    }
    Remarks

    DicomObjects attempts where possible to re-user arrays to hold pixel data, as this reduces fragmentation of the Large Object Heap. (see ReUseArrays for more details).

    If this property is false (the default) then the smallest array available for re-use which is either the right size or larger than the required size is used, but if this is false, then only an exactly sized array is accepted (and a new array is allocated if an exactly sized array is not available).
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also