FixedSizeBuffer.TryGetSegment(Int32, ArraySegment<Byte>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.