BufferedReader Class

Definition

A buffered reader for a Stream

public class BufferedReader : IDisposable
Inheritance
BufferedReader
Implements

Constructors

BufferedReader(Stream, Int32)

Creates a new BufferedReader instance

Fields

IncomingStream

The incoming Stream

Properties

HasDisposed

Has this object been disposed

IncomingStreamNeedToAdjustPosition

You may need to override this if your Stream requires it

IncomingStreamPosition

You may need to override this if your Stream requires it

Length

The length of the buffer

Position

The current position of the buffer

Methods

Dispose()

Disposes of this BufferedReader instance

This method SHOULD NOT be used! VoltRpc will dispose of this object when it is done with it!

NOTE: This disposal method will NOT call Dispose() on the underlying IncomingStream

Finalize()

Destructor for this object

ReadByte()

Reads a Byte

ReadBytesSegment(Int32)

Reads an array of Bytes as an ArraySegment<T>

ReadString()

Reads a String

Extension Methods

ReadBytesSpanCopy(BufferedReader, Int32)

Reads from BufferedReader and returns a Span<T> copy of it

This method does allocate

ReadBytesSpanSlice(BufferedReader, Int32)

Reads from BufferedReader and returns a Span<T> slice of the buffer

ReadStringSpan(BufferedReader)

Reads a String, but is using ReadBytesSpanSlice(BufferedReader, Int32) instead

ReadMatrix3X2(BufferedReader)

Reads a Matrix3x2

ReadMatrix4X4(BufferedReader)

Reads a Matrix4x4

ReadPlane(BufferedReader)

Reads a Plane

ReadQuaternion(BufferedReader)

Reads a Quaternion

ReadVector2(BufferedReader)

Reads a Vector2

ReadVector3(BufferedReader)

Reads a Vector3

ReadVector4(BufferedReader)

Reads a Vector4

ReadBool(BufferedReader)

Reads a Boolean

ReadChar(BufferedReader)

Reads a Char

ReadDecimal(BufferedReader)

Reads a Decimal

ReadDouble(BufferedReader)

Reads a Double

ReadFloat(BufferedReader)

Reads a Single

ReadInt(BufferedReader)

Reads a Int32

ReadLong(BufferedReader)

Reads a Int64

ReadSByte(BufferedReader)

Reads a SByte

ReadShort(BufferedReader)

Reads a Int16

ReadUInt(BufferedReader)

Reads a UInt32

ReadULong(BufferedReader)

Reads a UInt64

ReadUShort(BufferedReader)

Reads a UInt16

Applies to