Search Results for

    Show / Hide Table of Contents

    Class NetworkReader

    Network reader will read data from a buffer into any type. Used for deserializing packets.

    Inheritance
    Object
    NetworkReader
    PooledNetworkReader
    Namespace: FNNLib.Serialization
    Assembly: FNNLib.dll
    Syntax
    public class NetworkReader

    Constructors

    | Improve this Doc View Source

    NetworkReader(ArraySegment<Byte>)

    Declaration
    public NetworkReader(ArraySegment<byte> buffer)
    Parameters
    Type Name Description
    ArraySegment<Byte> buffer
    | Improve this Doc View Source

    NetworkReader(Byte[])

    Declaration
    public NetworkReader(byte[] buffer)
    Parameters
    Type Name Description
    Byte[] buffer

    Fields

    | Improve this Doc View Source

    position

    Reader position

    Declaration
    public int position
    Field Value
    Type Description
    Int32

    Properties

    | Improve this Doc View Source

    length

    The length of the data buffer.

    Declaration
    public int length { get; }
    Property Value
    Type Description
    Int32

    Methods

    | Improve this Doc View Source

    ReadBool()

    Declaration
    public bool ReadBool()
    Returns
    Type Description
    Boolean
    | Improve this Doc View Source

    ReadByte()

    Read a single byte from the stream.

    Declaration
    public byte ReadByte()
    Returns
    Type Description
    Byte
    Exceptions
    Type Condition
    EndOfStreamException
    | Improve this Doc View Source

    ReadBytes(Int32)

    Declaration
    public byte[] ReadBytes(int count)
    Parameters
    Type Name Description
    Int32 count
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    ReadBytesSegment(Int32)

    Declaration
    public ArraySegment<byte> ReadBytesSegment(int count)
    Parameters
    Type Name Description
    Int32 count
    Returns
    Type Description
    ArraySegment<Byte>
    | Improve this Doc View Source

    ReadBytesWithSize()

    Declaration
    public byte[] ReadBytesWithSize()
    Returns
    Type Description
    Byte[]
    | Improve this Doc View Source

    ReadChar()

    Declaration
    public char ReadChar()
    Returns
    Type Description
    Char
    | Improve this Doc View Source

    ReadColor()

    Declaration
    public Color ReadColor()
    Returns
    Type Description
    Color
    | Improve this Doc View Source

    ReadColor32()

    Declaration
    public Color32 ReadColor32()
    Returns
    Type Description
    Color32
    | Improve this Doc View Source

    ReadDecimal()

    Declaration
    public decimal ReadDecimal()
    Returns
    Type Description
    Decimal
    | Improve this Doc View Source

    ReadDouble()

    Declaration
    public double ReadDouble()
    Returns
    Type Description
    Double
    | Improve this Doc View Source

    ReadInt16()

    Declaration
    public short ReadInt16()
    Returns
    Type Description
    Int16
    | Improve this Doc View Source

    ReadInt32()

    Declaration
    public int ReadInt32()
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    ReadInt64()

    Declaration
    public long ReadInt64()
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    ReadPackedInt16()

    Declaration
    public short ReadPackedInt16()
    Returns
    Type Description
    Int16
    | Improve this Doc View Source

    ReadPackedInt32()

    Declaration
    public int ReadPackedInt32()
    Returns
    Type Description
    Int32
    | Improve this Doc View Source

    ReadPackedInt64()

    Declaration
    public long ReadPackedInt64()
    Returns
    Type Description
    Int64
    | Improve this Doc View Source

    ReadPackedObject(Type)

    Declaration
    public object ReadPackedObject(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    Object
    | Improve this Doc View Source

    ReadPackedObject<T>()

    Declaration
    public T ReadPackedObject<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Improve this Doc View Source

    ReadPackedUInt16()

    Declaration
    public ushort ReadPackedUInt16()
    Returns
    Type Description
    UInt16
    | Improve this Doc View Source

    ReadPackedUInt32()

    Declaration
    public uint ReadPackedUInt32()
    Returns
    Type Description
    UInt32
    | Improve this Doc View Source

    ReadPackedUInt64()

    Declaration
    public ulong ReadPackedUInt64()
    Returns
    Type Description
    UInt64
    | Improve this Doc View Source

    ReadQuaternion()

    Declaration
    public Quaternion ReadQuaternion()
    Returns
    Type Description
    Quaternion
    | Improve this Doc View Source

    ReadRay()

    Declaration
    public Ray ReadRay()
    Returns
    Type Description
    Ray
    | Improve this Doc View Source

    ReadSegmentWithSize()

    Declaration
    public ArraySegment<byte>? ReadSegmentWithSize()
    Returns
    Type Description
    Nullable<ArraySegment<Byte>>
    | Improve this Doc View Source

    ReadSingle()

    Declaration
    public float ReadSingle()
    Returns
    Type Description
    Single
    | Improve this Doc View Source

    ReadString()

    Declaration
    public string ReadString()
    Returns
    Type Description
    String
    | Improve this Doc View Source

    ReadUInt16()

    Declaration
    public ushort ReadUInt16()
    Returns
    Type Description
    UInt16
    | Improve this Doc View Source

    ReadUInt32()

    Declaration
    public uint ReadUInt32()
    Returns
    Type Description
    UInt32
    | Improve this Doc View Source

    ReadUInt64()

    Declaration
    public ulong ReadUInt64()
    Returns
    Type Description
    UInt64
    | Improve this Doc View Source

    ReadVector2()

    Declaration
    public Vector2 ReadVector2()
    Returns
    Type Description
    Vector2
    | Improve this Doc View Source

    ReadVector3()

    Declaration
    public Vector3 ReadVector3()
    Returns
    Type Description
    Vector3
    | Improve this Doc View Source

    ReadVector4()

    Declaration
    public Vector3 ReadVector4()
    Returns
    Type Description
    Vector3
    • Improve this Doc
    • View Source
    In This Article
    Back to top (C) 2020 Reece Mackie. Released under the MIT License.