public override int GetDataSize(object data) { int s; byte[] array = new byte[16]; BytePacker packer = new BytePacker(array); VarintBitConverter.SerializeULong((ulong)data, packer, out s); return(s); }
public override void Serialize(BytePacker packer, object data) { int s; VarintBitConverter.SerializeULong((ulong)data, packer, out s); }