Class SliceEncodeOptions
Represents a property bag used to configure the encoding of payloads.
public sealed class SliceEncodeOptions
- Inheritance
-
SliceEncodeOptions
- Inherited Members
Constructors
SliceEncodeOptions(MemoryPool<byte>?, int, int)
Constructs a new instance.
public SliceEncodeOptions(MemoryPool<byte>? pool = null, int minimumSegmentSize = -1, int streamFlushThreshold = -1)
Parameters
poolMemoryPool<byte>The pool parameter for the constructor of PipeOptions.
minimumSegmentSizeintThe minimum segment size for the constructor of PipeOptions.
streamFlushThresholdintThe value of StreamFlushThreshold. The default value (-1) is equivalent to 16 KB.
Properties
Default
Gets the default instance of SliceEncodeOptions.
public static SliceEncodeOptions Default { get; }
Property Value
PipeOptions
Gets the pipe options that the IceRPC + Slice integration uses when creating pipes. The IceRPC + Slice integration creates a pipe when encoding a request or response payload, and when encoding an async enumerable into a PipeReader.
public PipeOptions PipeOptions { get; }
Property Value
StreamFlushThreshold
Gets the stream flush threshold. When encoding a Slice stream (async enumerable), the IceRPC + Slice
integration encodes the values provided by the source async enumerable into a pipe writer. The IceRPC + Slice
integration flushes this pipe writer when no new value is available synchronously, or when it has written
StreamFlushThreshold bytes to this pipe writer.
public int StreamFlushThreshold { get; }