Struct wkwrap::header::Header
[−]
[src]
pub struct Header { pub version: u8, pub block_len_log2: u8, pub file_len_log2: u8, pub block_type: BlockType, pub voxel_type: VoxelType, pub voxel_size: u8, pub data_offset: u64, pub jump_table: Option<Box<[u64]>>, }
Fields
version: u8
block_len_log2: u8
file_len_log2: u8
block_type: BlockType
voxel_type: VoxelType
voxel_size: u8
data_offset: u64
jump_table: Option<Box<[u64]>>
Methods
impl Header
[src]
pub fn from_template(template: &Header) -> Header
[src]
pub fn compress(template: &Header) -> Header
[src]
pub fn size_on_disk(&self) -> usize
[src]
pub fn read(file: &mut File) -> Result<Header>
[src]
pub fn write(&self, file: &mut File) -> Result<()>
[src]
pub fn block_offset(&self, block_idx: u64) -> Result<u64>
[src]
pub fn block_size_on_disk(&self, block_idx: u64) -> Result<usize>
[src]
pub fn max_block_size_on_disk(&self) -> usize
[src]
pub fn voxel_type_size(&self) -> usize
[src]
pub fn num_channels(&self) -> usize
[src]
pub fn is_multi_channel(&self) -> bool
[src]
pub fn to_bytes(&self) -> [u8; 16]
[src]
pub fn block_len(&self) -> u16
[src]
pub fn block_vol(&self) -> u64
[src]
pub fn block_size(&self) -> usize
[src]
pub fn file_len(&self) -> u16
[src]
pub fn file_vol(&self) -> u64
[src]
pub fn file_len_vx_log2(&self) -> u8
[src]
pub fn file_len_vx(&self) -> u32
[src]
pub fn file_vol_vx(&self) -> u64
[src]
pub fn file_size(&self) -> usize
[src]
Trait Implementations
impl Clone for Header
[src]
fn clone(&self) -> Header
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Header
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more