Skip to content

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

Properties

  • Id Unique identifier of this buffer.

Methods

  • OnResetState Notifies 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