Reader<TInput>
struct
Namespace: Orleans.Serialization.Buffers
Provides functionality for parsing data from binary input.
public struct Reader<TInput>Properties
Methods
EnsureAvailable(uint)Throws if fewer thancountbytes remain in the input.ForkFrom(long, Reader<TInput>)Creates a new reader beginning at the specified position.PeekByteReturns the next byte from the input without advancing the reader.ReadByteReads a byte from the input.ReadBytes(uint)Reads an array of bytes from the input.ReadBytes(Span<byte>)Fillsdestinationwith bytes read from the input.ReadBytes(TBufferWriter, int)Reads the specified number of bytes into the provided writer.ReadInt32Reads anSystem.Int32from the input.ReadInt64Reads aSystem.Int64from the input.ReadOwnedBuffer(int)Reads bytes into an independently ownedArcBuffer.ReadUInt32Reads aSystem.UInt32from the input.ReadUInt64Reads aSystem.UInt64from the input.ReadVarUInt32Reads a variable-widthSystem.UInt32from the input.ReadVarUInt64Reads a variable-widthSystem.UInt64from the input.ResumeFrom(long)Resumes the reader from the specified position after forked readers are no longer in use.Skip(long)Skips the specified number of bytes.TryReadBytes(int, ReadOnlySpan<byte>)Tries the read the specified number of bytes from the input.
