Struct OutProtocolBitStream
- Namespace
- Coherence.Serializer
- Assembly
- Coherence.Serializer.dll
public struct OutProtocolBitStream : IOutProtocolBitStream
- Implements
-
Constructors
OutProtocolBitStream(IOutBitStream, Logger)
public OutProtocolBitStream(IOutBitStream bitStream, Logger logger)
Parameters
bitStream
IOutBitStream
logger
Logger
Fields
BYTES_LIST_LENGTH_BITS
public const int BYTES_LIST_LENGTH_BITS = 9
Field Value
- int
BYTES_LIST_MAX_LENGTH
public const int BYTES_LIST_MAX_LENGTH = 511
Field Value
- int
ENUM_LENGTH_BITS
public const int ENUM_LENGTH_BITS = 6
Field Value
- int
ENUM_MAX_VALUE
public const int ENUM_MAX_VALUE = 63
Field Value
- int
SHORT_STRING_LENGTH_BITS
public const int SHORT_STRING_LENGTH_BITS = 6
Field Value
- int
SHORT_STRING_MAX_SIZE
public const int SHORT_STRING_MAX_SIZE = 63
Field Value
- int
Properties
BitStream
public readonly IOutBitStream BitStream { get; }
Property Value
- IOutBitStream
Methods
WriteBits(uint, int)
public void WriteBits(uint value, int count)
Parameters
value
uint
count
int
WriteBool(bool)
public void WriteBool(bool b)
Parameters
b
bool
WriteByte(byte)
public void WriteByte(byte value)
Parameters
value
byte
WriteBytesList(byte[])
public void WriteBytesList(byte[] data)
Parameters
data
byte[]
WriteChar(char)
public void WriteChar(char value)
Parameters
value
char
public void WriteColor(in Vector4 v, in FloatMeta meta)
Parameters
v
Vector4
meta
FloatMeta
WriteDouble(double)
public void WriteDouble(double value)
Parameters
value
double
WriteEntity(Entity)
public void WriteEntity(Entity entityID)
Parameters
entityID
Entity
WriteEnum(int)
public void WriteEnum(int b)
Parameters
b
int
public void WriteFloat(float value, in FloatMeta meta)
Parameters
value
float
meta
FloatMeta
WriteIntegerRange(int, int, int)
public void WriteIntegerRange(int v, int bitCount, int offset)
Parameters
v
int
bitCount
int
offset
int
WriteLong(long)
public void WriteLong(long value)
Parameters
value
long
WriteMask(bool)
public bool WriteMask(bool b)
Parameters
b
bool
Returns
- bool
WriteMaskBits(uint, uint)
public void WriteMaskBits(uint mask, uint numBits)
Parameters
mask
uint
numBits
uint
WriteQuaternion(in Quaternion, int)
public void WriteQuaternion(in Quaternion q, int bitsPerComponent)
Parameters
q
Quaternion
bitsPerComponent
int
WriteSByte(sbyte)
public void WriteSByte(sbyte value)
Parameters
value
sbyte
WriteShort(short)
public void WriteShort(short value)
Parameters
value
short
WriteShortString(string)
public void WriteShortString(string s)
Parameters
s
string
WriteUIntegerRange(uint, int, uint)
public void WriteUIntegerRange(uint v, int bitCount, uint offset)
Parameters
v
uint
bitCount
int
offset
uint
WriteULong(ulong)
public void WriteULong(ulong value)
Parameters
value
ulong
WriteUShort(ushort)
public void WriteUShort(ushort value)
Parameters
value
ushort
public void WriteVector2(in Vector2 v, in FloatMeta meta)
Parameters
v
Vector2
meta
FloatMeta
public void WriteVector3(in Vector3 v, in FloatMeta meta)
Parameters
v
Vector3
meta
FloatMeta
WriteVector3d(in Vector3d)
public void WriteVector3d(in Vector3d v)
Parameters
v
Vector3d
public void WriteVector4(in Vector4 v, in FloatMeta meta)
Parameters
v
Vector4
meta
FloatMeta