public static void WriteZInt64(Stream stream, long val) { ProtocolParser.WriteUInt64(stream, (ulong)(val << 1 ^ val >> 63)); }
public static void WriteInt64(Stream stream, int val) { ProtocolParser.WriteUInt64(stream, (ulong)val); }