Struct InProtocolBitStream
- Namespace
- Coherence.Serializer
- Assembly
- Coherence.Serializer.dll
public struct InProtocolBitStream : IInProtocolBitStream
- Implements
-
Constructors
InProtocolBitStream(IInBitStream)
public InProtocolBitStream(IInBitStream bitStream)
Parameters
bitStream
IInBitStream
Methods
ReadBits(int)
public uint ReadBits(int count)
Parameters
count
int
Returns
- uint
ReadBool()
Returns
- bool
ReadByte()
Returns
- byte
ReadBytesList()
public byte[] ReadBytesList()
Returns
- byte[]
ReadChar()
Returns
- char
public Vector4 ReadColor(in FloatMeta meta)
Parameters
meta
FloatMeta
Returns
- Vector4
ReadDouble()
public double ReadDouble()
Returns
- double
ReadEntity()
public Entity ReadEntity()
Returns
- Entity
ReadEnum()
Returns
- int
public float ReadFloat(in FloatMeta meta)
Parameters
meta
FloatMeta
Returns
- float
ReadIntegerRange(int, int)
public int ReadIntegerRange(int bitCount, int offset)
Parameters
bitCount
int
offset
int
Returns
- int
ReadLong()
Returns
- long
ReadMask()
Returns
- bool
ReadMaskBits(uint)
public uint ReadMaskBits(uint numBits)
Parameters
numBits
uint
Returns
- uint
ReadQuaternion(int)
public Quaternion ReadQuaternion(int bitsPerComponent)
Parameters
bitsPerComponent
int
Returns
- Quaternion
ReadSByte()
Returns
- sbyte
ReadShort()
Returns
- short
ReadShortString()
public string ReadShortString()
Returns
- string
ReadUIntegerRange(int, uint)
public uint ReadUIntegerRange(int bitCount, uint offset)
Parameters
bitCount
int
offset
uint
Returns
- uint
ReadULong()
Returns
- ulong
ReadUShort()
public ushort ReadUShort()
Returns
- ushort
public Vector2 ReadVector2(in FloatMeta meta)
Parameters
meta
FloatMeta
Returns
- Vector2
public Vector3 ReadVector3(in FloatMeta meta)
Parameters
meta
FloatMeta
Returns
- Vector3
ReadVector3d()
public Vector3d ReadVector3d()
Returns
- Vector3d
public Vector4 ReadVector4(in FloatMeta meta)
Parameters
meta
FloatMeta
Returns
- Vector4