Edit

Share via


FixedSizeBuffer.TryGetSegment(Int32, ArraySegment<Byte>) Method

Definition

Try to get a segment with a buffer of the specified size from this block. Fail if there is not enough space available

public bool TryGetSegment (int size, out ArraySegment<byte> value);
member this.TryGetSegment : int * ArraySegment -> bool
Public Function TryGetSegment (size As Integer, ByRef value As ArraySegment(Of Byte)) As Boolean

Parameters

size
Int32

The size.

value
ArraySegment<Byte>

The segment.

Returns

true if the segment was retrieved; otherwise false.

Applies to