Struct mca_parser::Location
source · pub struct Location {
pub offset: u32,
pub sector_count: u8,
}
Expand description
Represents a chunk’s location in the region file
See https://minecraft.fandom.com/wiki/Region_file_format#Chunk_location
Fields§
§offset: u32
Represents the distance in 4096 byte sectors from the beginning of the file
sector_count: u8
Represents the count of the sectors in which the chunk data is stored.
Note: The actual size of the chunk data is probably less than sector_count * 4096
Trait Implementations§
impl Copy for Location
Auto Trait Implementations§
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more