static void encode_id (byte[] buf, long id, ref int offset) { encode_int (buf, (int)id, ref offset); }