ArcBufferReader.Peek(Span<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.
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
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.