Class ReadBufferTuningOptions

Class ReadBufferTuningOptions

Namespace: Aspose.Medical.Dicom.Readers
Assembly: Aspose.Medical.dll (25.11.0)

Buffer tuning for read operations.

public sealed record ReadBufferTuningOptions : IEquatable<readbuffertuningoptions>

Inheritance

object ReadBufferTuningOptions

Implements

IEquatable<readbuffertuningoptions>

Inherited Members

object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

ReadBufferTuningOptions()

public ReadBufferTuningOptions()

Fields

MaxBufferSize

Maximum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.BufferSize (bytes). 4 MiB.

public const int MaxBufferSize = 4194304

Field Value

int

MaxMinimumReadSize

Maximum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinimumReadSize (bytes). Equals Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MaxBufferSize.

public const int MaxMinimumReadSize = 4194304

Field Value

int

MinBufferSize

Minimum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.BufferSize (bytes). One page (4 KiB).

public const int MinBufferSize = 4096

Field Value

int

MinMinimumReadSize

Minimum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinimumReadSize (bytes). One page (4 KiB).

public const int MinMinimumReadSize = 4096

Field Value

int

Properties

BufferSize

Minimum buffer size (bytes) when renting from the pool. -1 = system default. Clamped to [Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinBufferSize, Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MaxBufferSize], aligned up to 4 KiB. Read-only, System.Int32.

public int BufferSize { get; init; }

Property Value

int

Default

Default tuning (platform/stream defaults; values = -1). Read-only, Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.

public static ReadBufferTuningOptions Default { get; }

Property Value

ReadBufferTuningOptions

MinimumReadSize

Low-watermark in bytes before refilling. -1 = system default. Clamped to [Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinMinimumReadSize, Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MaxMinimumReadSize], aligned up to 4 KiB, ≤ Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.BufferSize when both set. Read-only, System.Int32.

public int MinimumReadSize { get; init; }

Property Value

int

Methods

<clone>$()

public ReadBufferTuningOptions <clone>$()

Returns

ReadBufferTuningOptions

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object ?

Returns

bool

Equals(ReadBufferTuningOptions?)

public bool Equals(ReadBufferTuningOptions? other)

Parameters

other ReadBufferTuningOptions ?

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(ReadBufferTuningOptions?, ReadBufferTuningOptions?)

public static bool operator ==(ReadBufferTuningOptions? left, ReadBufferTuningOptions? right)

Parameters

left ReadBufferTuningOptions ?

right ReadBufferTuningOptions ?

Returns

bool

operator !=(ReadBufferTuningOptions?, ReadBufferTuningOptions?)

public static bool operator !=(ReadBufferTuningOptions? left, ReadBufferTuningOptions? right)

Parameters

left ReadBufferTuningOptions ?

right ReadBufferTuningOptions ?

Returns

bool </clone></readbuffertuningoptions>