DicomObjects.NET.8.48 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 System.Boolean
    'Usage
     
    
    Dim value As System.Boolean
     
    DicomGlobal.ReuseOnlyExactArraySize = value
     
    value = DicomGlobal.ReuseOnlyExactArraySize
    public static System.bool ReuseOnlyExactArraySize {get; set;}
    public read-write property ReuseOnlyExactArraySize: System.Boolean; static; 
    public static function get,set ReuseOnlyExactArraySize : System.boolean
    public: __property static System.bool get_ReuseOnlyExactArraySize();
    public: __property static void set_ReuseOnlyExactArraySize( 
       System.bool value
    );
    public:
    static property System.bool ReuseOnlyExactArraySize {
       System.bool get();
       void set (    System.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.8 or higher

    See Also