pub fn read(&mut self, pos: P) -> &'static [u8] {

        let fileno   = pos.get_file_number();
        let filepos  = pos.get_file_offset() as usize;
        let file     = self.get_flatfile(fileno);

        let len: u32 = *file.get(filepos as usize);
        file.get_slice(filepos+4, len as usize)
    }
/// Reads the length-prefixed buffer at the given position
Reads the length-prefixed buffer at the given position
Reads the length - prefixed buffer at the given position
pub fn read(&mut self, pos: P) -> &'static [u8] {
        let fileno   = pos.get_file_number();
        let filepos  = pos.get_file_offset() as usize;
        let file     = self.get_flatfile(fileno);
        let len: u32 = *file.get(filepos as usize);
        file.get_slice(filepos+4, len as usize)
    }
pub fn read ( & mut self , pos : P ) -> & ' static [ u8 ] { let fileno = pos . get_file_number ( ) ; let filepos = pos . get_file_offset ( ) as usize ; let file = self . get_flatfile ( fileno ) ; let len : u32 = * file . get ( filepos as usize ) ; file . get_slice ( filepos + 4 , len as usize ) }
Reads the length-prefixed buffer at the given position
Reads the length - prefixed buffer at the given position
&mut self
pos
P
&mut self
pos
P