Struct assembly_maps::lvl::reader::LevelReader
source · pub struct LevelReader<T> { /* private fields */ }
Expand description
A low level reader class
Implementations§
source§impl<T> LevelReader<T>
impl<T> LevelReader<T>
source§impl<T> LevelReader<T>
impl<T> LevelReader<T>
sourcepub fn seek_to(&mut self, header: &ChunkHeader) -> FileResult<()>
pub fn seek_to(&mut self, header: &ChunkHeader) -> FileResult<()>
Seek to the chunk data
pub fn load_buf( &mut self, base: u32, header: &ChunkHeader, ) -> FileResult<Vec<u8>>
sourcepub fn get_chunk(
&mut self,
header: &FileMetaChunkData,
id: u32,
) -> Option<FileResult<ChunkHeader>>
pub fn get_chunk( &mut self, header: &FileMetaChunkData, id: u32, ) -> Option<FileResult<ChunkHeader>>
Seek meta
sourcepub fn get_chunk_header(&mut self) -> FileResult<ChunkHeader>
pub fn get_chunk_header(&mut self) -> FileResult<ChunkHeader>
Load a chunk header
sourcepub fn get_meta_chunk_data(&mut self) -> FileResult<FileMetaChunkData>
pub fn get_meta_chunk_data(&mut self) -> FileResult<FileMetaChunkData>
Get the chunk meta data
sourcepub fn get_meta_chunk(&mut self) -> FileResult<FileMetaChunk>
pub fn get_meta_chunk(&mut self) -> FileResult<FileMetaChunk>
Get the meta chunk
pub fn read_level_file(&mut self) -> FileResult<Level>
Auto Trait Implementations§
impl<T> Freeze for LevelReader<T>where
T: Freeze,
impl<T> RefUnwindSafe for LevelReader<T>where
T: RefUnwindSafe,
impl<T> Send for LevelReader<T>where
T: Send,
impl<T> Sync for LevelReader<T>where
T: Sync,
impl<T> Unpin for LevelReader<T>where
T: Unpin,
impl<T> UnwindSafe for LevelReader<T>where
T: UnwindSafe,
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