Class WriteBufferTuningOptions
Namespace: Aspose.Medical.Dicom.Writers
Assembly: Aspose.Medical.dll (25.11.0)
Buffer tuning for write operations.
public sealed record WriteBufferTuningOptions : IEquatable<writebuffertuningoptions>Inheritance
object ← WriteBufferTuningOptions
Implements
IEquatable<writebuffertuningoptions>
Inherited Members
object.GetType() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
WriteBufferTuningOptions()
public WriteBufferTuningOptions()Fields
MaxFlushThresholdBytes
Maximum allowed flush threshold in bytes (16 MiB).
public const int MaxFlushThresholdBytes = 16777216Field Value
MaxSegmentSizeBytes
Maximum allowed segment size in bytes (4 MiB).
public const int MaxSegmentSizeBytes = 4194304Field Value
MinFlushThresholdBytes
Minimum allowed flush threshold in bytes (4 KiB).
public const int MinFlushThresholdBytes = 4096Field Value
MinSegmentSizeBytes
Minimum allowed segment size in bytes (4 KiB).
public const int MinSegmentSizeBytes = 4096Field Value
Properties
Default
Default tuning options. Read-only, Aspose.Medical.Dicom.Writers.WriteBufferTuningOptions.
public static WriteBufferTuningOptions Default { get; }Property Value
MinimumSegmentSizeBytes
Minimum buffer segment the writer will request from its pool. Values are clamped to Aspose.Medical.Dicom.Writers.WriteBufferTuningOptions.MinSegmentSizeBytes…Aspose.Medical.Dicom.Writers.WriteBufferTuningOptions.MaxSegmentSizeBytes and aligned up to the nearest 4 KiB boundary. Read-only, System.Int32.
public int MinimumSegmentSizeBytes { get; init; }Property Value
Remarks
Default value is 16 KiB.
ProducerFlushThresholdBytes
Number of produced bytes after which a flush is attempted to apply backpressure for synchronous writers. Values are clamped to Aspose.Medical.Dicom.Writers.WriteBufferTuningOptions.MinFlushThresholdBytes…Aspose.Medical.Dicom.Writers.WriteBufferTuningOptions.MaxFlushThresholdBytes and aligned up to the nearest 4 KiB boundary. Read-only, System.Int32.
public int ProducerFlushThresholdBytes { get; init; }Property Value
Remarks
Default value is 64 KiB.
Methods
<clone>$()
public WriteBufferTuningOptions <clone>$()Returns
Equals(object?)
public override bool Equals(object? obj)Parameters
obj object
?
Returns
Equals(WriteBufferTuningOptions?)
public bool Equals(WriteBufferTuningOptions? other)Parameters
other WriteBufferTuningOptions
?
Returns
GetHashCode()
public override int GetHashCode()Returns
ToString()
public override string ToString()Returns
Operators
operator ==(WriteBufferTuningOptions?, WriteBufferTuningOptions?)
public static bool operator ==(WriteBufferTuningOptions? left, WriteBufferTuningOptions? right)Parameters
left WriteBufferTuningOptions
?
right WriteBufferTuningOptions
?
Returns
operator !=(WriteBufferTuningOptions?, WriteBufferTuningOptions?)
public static bool operator !=(WriteBufferTuningOptions? left, WriteBufferTuningOptions? right)Parameters
left WriteBufferTuningOptions
?
right WriteBufferTuningOptions
?
Returns
bool </clone></writebuffertuningoptions>