Skip to content

JournalBufferReader.TryPeek(Span<byte>)

TryPeek(Span<byte>)

View source
public bool TryPeek(Span<byte> destination)
Attempts to copy the next bytes into destination without reading them.

Parameters

destinationSpan<byte>
The destination to copy to.

Returns

true if enough bytes were available; otherwise, false.