Skip to main content

TypeSerializationHelper.BitSerialization

A class in Root.Township, the global namespace.

Writes a uint using a fixed number of bits.

Constructors​

MemberWhat it is
BitSerialization(int bits)Creates a TypeSerializationHelper.BitSerialization from bits.

Fields​

1 private and internal field
MemberWhat it is
private int bitsHow many bits are written.

Methods​

MemberWhat it is
protected override void Serialize(Type type, ref uint value, Stream stream, ChunkVersioning versioning)Reads or writes the value with SerializeBits.