Change BitSet

This commit is contained in:
Snowiiii committed 2024-08-03 14:21:08 +02:00
1 parent f779d31880
commit 1ad4074eba
2 files changed
+3 -6

No files matched your search

+2 -2
View File
@@ -142,8 +142,8 @@ impl ByteBuffer {
}
pub fn put_bit_set(&mut self, set: &BitSet) {
self.put_var_int(set.length);
for b in &set.data {
self.put_var_int(set.0);
for b in &set.1 {
self.put_i64(*b);
}
}
+1 -4
View File
@@ -19,10 +19,7 @@ pub type Identifier = String;
pub type VarInt = i32;
pub type VarLong = i64;
pub struct BitSet {
length: VarInt,
data: Vec<i64>,
}
pub struct BitSet(pub VarInt, pub Vec<i64>);
pub struct VarInt32(pub i32);