Change BitSet
This commit is contained in:
parent
f779d31880
commit
1ad4074eba
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user