Skip to content

JournalBufferReader.TryRead(Span<byte>)

TryRead(Span<byte>)

View source
public bool TryRead(Span<byte> destination)
Attempts to copy the next bytes into destination and read them.

Parameters

destinationSpan<byte>
The destination to copy to.

Returns

true if enough bytes were available; otherwise, false.