Edit

ArcBufferReader.Peek(Span<Byte>) Method

Definition

Attempts to read the provided number of bytes from the buffer.

public ReadOnlySpan<byte> Peek(scoped in Span<byte> destination);
member this.Peek : Span -> ReadOnlySpan<byte>
Public Function Peek (ByRef destination As Span(Of Byte)) As ReadOnlySpan(Of Byte)

Parameters

destination
Span<Byte>

The destination, which may be used to hold the requested data if the data needs to be copied.

Returns

A span of either zero length, if the data is unavailable, or the requested length if the data is available.

Applies to