Edit

Share via


PrefixingBufferWriter<T,TBufferWriter> Constructor

Definition

Initializes a new instance of the PrefixingBufferWriter<T,TBufferWriter> class.

public PrefixingBufferWriter (int prefixSize, int payloadSizeHint, System.Buffers.MemoryPool<T> memoryPool);
new Orleans.Runtime.Messaging.PrefixingBufferWriter<'T, 'BufferWriter (requires 'BufferWriter :> System.Buffers.IBufferWriter<'T>)> : int * int * System.Buffers.MemoryPool<'T> -> Orleans.Runtime.Messaging.PrefixingBufferWriter<'T, 'BufferWriter (requires 'BufferWriter :> System.Buffers.IBufferWriter<'T>)>
Public Sub New (prefixSize As Integer, payloadSizeHint As Integer, memoryPool As MemoryPool(Of T))

Parameters

prefixSize
Int32

The length of the header to reserve space for. Must be a positive number.

payloadSizeHint
Int32

A hint at the expected max size of the payload. The real size may be more or less than this, but additional copying is avoided if it does not exceed this amount. If 0, a reasonable guess is made.

memoryPool
MemoryPool<T>

Applies to