FixedSizeBuffer
class
Namespace: Orleans.Providers.Streams.Common
Manages a contiguous block of memory. Calls purge action with itself as the purge request when it's signaled to purge.
public class FixedSizeBuffer : PooledResource<FixedSizeBuffer>Constructors
FixedSizeBuffer(int)Manages access to a fixed size byte buffer.
Properties
IdUnique identifier of this buffer.
Methods
OnResetStateNotifies the object that it has been purged, so it can reset itself to the state of a newly allocated object.TryGetSegment(int, ArraySegment<byte>)Try to get a segment with a buffer of the specified size from this block. Fail if there is not enough space available
Fields
SizeInByteBuffer size in bytes.
