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 = 4194304Field Value
MaxMinimumReadSize
Maximum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinimumReadSize (bytes). Equals Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MaxBufferSize.
public const int MaxMinimumReadSize = 4194304Field Value
MinBufferSize
Minimum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.BufferSize (bytes). One page (4 KiB).
public const int MinBufferSize = 4096Field Value
MinMinimumReadSize
Minimum allowed Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.MinimumReadSize (bytes). One page (4 KiB).
public const int MinMinimumReadSize = 4096Field Value
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
Default
Default tuning (platform/stream defaults; values = -1). Read-only, Aspose.Medical.Dicom.Readers.ReadBufferTuningOptions.
public static ReadBufferTuningOptions Default { get; }Property Value
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
Methods
<clone>$()
public ReadBufferTuningOptions <clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object
?
Returns
Equals(ReadBufferTuningOptions?)
public bool Equals(ReadBufferTuningOptions? other)Parameters
other ReadBufferTuningOptions
?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(ReadBufferTuningOptions?, ReadBufferTuningOptions?)
public static bool operator ==(ReadBufferTuningOptions? left, ReadBufferTuningOptions? right)Parameters
left ReadBufferTuningOptions
?
right ReadBufferTuningOptions
?
Returns
operator !=(ReadBufferTuningOptions?, ReadBufferTuningOptions?)
public static bool operator !=(ReadBufferTuningOptions? left, ReadBufferTuningOptions? right)Parameters
left ReadBufferTuningOptions
?
right ReadBufferTuningOptions
?
Returns
bool </clone></readbuffertuningoptions>