Skip to content

FixedSizeBuffer.TryGetSegment(int, ArraySegment<byte>)

TryGetSegment(int, ArraySegment<byte>)

View source
public bool TryGetSegment(int size, out ArraySegment<byte> value)
Try to get a segment with a buffer of the specified size from this block. Fail if there is not enough space available

Parameters

sizeint
The size.
valueArraySegment<byte>
The segment.

Returns

true if the segment was retrieved; otherwise false.