ArcBufferWriter.Peek 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.
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>)
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
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.