Struct fastanvil::PackedBits
source · pub struct PackedBits(pub LongArray);
Expand description
PackedBits can be used in place of blockstates in chunks to avoid
allocating memory for them when they might not be needed. This object by
default just retains a reference to the data in the input, and unpack_into
can be used to get the unpacked version when needed.
Tuple Fields§
§0: LongArray
Implementations§
source§impl PackedBits
impl PackedBits
pub fn unpack_blockstates(&self, bits_per_item: usize, buf: &mut [u16])
Trait Implementations§
source§impl Debug for PackedBits
impl Debug for PackedBits
source§impl<'de> Deserialize<'de> for PackedBits
impl<'de> Deserialize<'de> for PackedBits
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more