Reader<TInput> Struct
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.
Provides functionality for parsing data from binary input.
public ref struct Reader<TInput>
type Reader<'Input> = struct
Public Structure Reader(Of TInput)
Type Parameters
- TInput
The underlying buffer reader type.
- Inheritance
-
Reader<TInput>
Properties
Length |
Gets the input length. |
Position |
Gets the current reader position. |
Session |
Gets the serializer session. |
Methods
ForkFrom(Int64, Reader<TInput>) |
Creates a new reader beginning at the specified position. |
ReadByte() |
Reads a byte from the input. |
ReadBytes(Span<Byte>) |
Fills |
ReadBytes(UInt32) |
Reads an array of bytes from the input. |
ReadBytes<TBufferWriter>(TBufferWriter, Int32) |
Reads the specified number of bytes into the provided writer. |
ReadInt32() |
Reads an Int32 from the input. |
ReadInt64() |
Reads a Int64 from the input. |
ReadUInt32() |
Reads a UInt32 from the input. |
ReadUInt64() |
Reads a UInt64 from the input. |
ReadVarUInt32() |
Reads a variable-width UInt32 from the input. |
ReadVarUInt64() |
Reads a variable-width UInt64 from the input. |
ResumeFrom(Int64) |
Resumes the reader from the specified position after forked readers are no longer in use. |
Skip(Int64) |
Skips the specified number of bytes. |
TryReadBytes(Int32, ReadOnlySpan<Byte>) |
Tries the read the specified number of bytes from the input. |