Skip to main content

ULongBytes

A internal struct in Alta.Serialization.Runtime, Alta.Serialization. Reach it through att-stubs' publicized assemblies or Harmony's AccessTools.

Internal helper that sends a long as two raw 32-bit uints.

Fields​

2 private and internal fields
MemberWhat it is
private static readonly long[] decimalValueStatic one-long buffer for the byte copy.
private static readonly uint[] intValueStatic two-uint buffer for the byte copy.

Methods​

MemberWhat it is
static void Serialize(ref long value, Stream stream)Copies the long's 8 bytes into two uints and serializes them, then back on read. Uses static buffers, so it is not thread safe.