Class NetworkReader
Network reader will read data from a buffer into any type.
Used for deserializing packets.
Inheritance
NetworkReader
Assembly: FNNLib.dll
Syntax
public class NetworkReader
Constructors
|
Improve this Doc
View Source
NetworkReader(ArraySegment<Byte>)
Declaration
public NetworkReader(ArraySegment<byte> buffer)
Parameters
|
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
Declaration
Field Value
Properties
|
Improve this Doc
View Source
length
The length of the data buffer.
Declaration
public int length { get; }
Property Value
Methods
|
Improve this Doc
View Source
ReadBool()
Declaration
Returns
|
Improve this Doc
View Source
ReadByte()
Read a single byte from the stream.
Declaration
Returns
Exceptions
|
Improve this Doc
View Source
ReadBytes(Int32)
Declaration
public byte[] ReadBytes(int count)
Parameters
| Type |
Name |
Description |
| Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ReadBytesSegment(Int32)
Declaration
public ArraySegment<byte> ReadBytesSegment(int count)
Parameters
| Type |
Name |
Description |
| Int32 |
count |
|
Returns
|
Improve this Doc
View Source
ReadBytesWithSize()
Declaration
public byte[] ReadBytesWithSize()
Returns
|
Improve this Doc
View Source
ReadChar()
Declaration
Returns
|
Improve this Doc
View Source
ReadColor()
Declaration
Returns
|
Improve this Doc
View Source
ReadColor32()
Declaration
public Color32 ReadColor32()
Returns
|
Improve this Doc
View Source
ReadDecimal()
Declaration
public decimal ReadDecimal()
Returns
|
Improve this Doc
View Source
ReadDouble()
Declaration
public double ReadDouble()
Returns
|
Improve this Doc
View Source
ReadInt16()
Declaration
Returns
|
Improve this Doc
View Source
ReadInt32()
Declaration
Returns
|
Improve this Doc
View Source
ReadInt64()
Declaration
Returns
|
Improve this Doc
View Source
ReadPackedInt16()
Declaration
public short ReadPackedInt16()
Returns
|
Improve this Doc
View Source
ReadPackedInt32()
Declaration
public int ReadPackedInt32()
Returns
|
Improve this Doc
View Source
ReadPackedInt64()
Declaration
public long ReadPackedInt64()
Returns
|
Improve this Doc
View Source
ReadPackedObject(Type)
Declaration
public object ReadPackedObject(Type type)
Parameters
| Type |
Name |
Description |
| Type |
type |
|
Returns
|
Improve this Doc
View Source
ReadPackedObject<T>()
Declaration
public T ReadPackedObject<T>()
Returns
Type Parameters
|
Improve this Doc
View Source
ReadPackedUInt16()
Declaration
public ushort ReadPackedUInt16()
Returns
|
Improve this Doc
View Source
ReadPackedUInt32()
Declaration
public uint ReadPackedUInt32()
Returns
|
Improve this Doc
View Source
ReadPackedUInt64()
Declaration
public ulong ReadPackedUInt64()
Returns
|
Improve this Doc
View Source
ReadQuaternion()
Declaration
public Quaternion ReadQuaternion()
Returns
| Type |
Description |
| Quaternion |
|
|
Improve this Doc
View Source
ReadRay()
Declaration
Returns
|
Improve this Doc
View Source
ReadSegmentWithSize()
Declaration
public ArraySegment<byte>? ReadSegmentWithSize()
Returns
|
Improve this Doc
View Source
ReadSingle()
Declaration
public float ReadSingle()
Returns
|
Improve this Doc
View Source
ReadString()
Declaration
public string ReadString()
Returns
|
Improve this Doc
View Source
ReadUInt16()
Declaration
public ushort ReadUInt16()
Returns
|
Improve this Doc
View Source
ReadUInt32()
Declaration
Returns
|
Improve this Doc
View Source
ReadUInt64()
Declaration
public ulong ReadUInt64()
Returns
|
Improve this Doc
View Source
ReadVector2()
Declaration
public Vector2 ReadVector2()
Returns
|
Improve this Doc
View Source
ReadVector3()
Declaration
public Vector3 ReadVector3()
Returns
|
Improve this Doc
View Source
ReadVector4()
Declaration
public Vector3 ReadVector4()
Returns