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