JournalBufferReader
struct
Namespace: Orleans.Journaling
Provides access to buffered journal data read from storage.
public readonly struct JournalBufferReaderRemarks
Instances are temporary cursors over pooled buffer pages and must not be retained beyond the synchronous call which supplied them.
Constructors
JournalBufferReader(ArcBufferReader, bool)Initializes a new instance of theJournalBufferReaderstruct.
Properties
IsCompletedGets a value indicating whether no more data will be appended to this buffer.LengthGets the number of unread bytes.
Methods
IsNext(ReadOnlySpan<byte>, bool)Checks whether the next bytes matchnext.Peek(int)Returns a pinned slice of the provided length without reading the data.Peek(int, Span<byte>)Gets a span containing the nextcountbytes without reading them.Read(Span<byte>)Copies the next bytes intodestinationand reads them.Skip(int)Skips the nextcountbytes.ToArrayCopies the remaining bytes into a new array without reading them.TryPeek(Span<byte>)Attempts to copy the next bytes intodestinationwithout reading them.TryRead(Span<byte>)Attempts to copy the next bytes intodestinationand read them.TryReadTo(ArcBuffer, byte, bool)Reads bytes untildelimiteris found.TrySkip(int)Attempts to skip the nextcountbytes.
