DicomObjects.NET.V8
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: .NET CLR 4.0 or higher

    See Also