Edit

ArcBufferWriter.Peek Method

Definition

Overloads

Name Description
Peek(Span<Byte>)

Copies the contents of this writer to a span.

Peek(Span<Byte>)

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

Peek(Span<Byte>)

Copies the contents of this writer to a span.

public int Peek(Span<byte> output);
member this.Peek : Span<byte> -> int
Public Function Peek (output As Span(Of Byte)) As Integer

Parameters

output
Span<Byte>

Returns

Remarks

This method does not advance the read cursor.

Applies to

Peek(Span<Byte>)

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 at least the requested length if the data is available.

Applies to