HA3ODU4GEQ4X55UDTY3QZUTD557DHTIHH2B5CSMY7YNHOBYQARBQC
IB4L4N5M765IYALNZENJRKOGUPBRK2AMAB6IRNWPDCKNKKRMOB5AC
HEFGMMUMJ2GGJGF2BEKF7EUL24AO53WJTXKBJSEGT64AV3Y4TBZQC
IH334Q5ACWE4TNQYYOOF6GWV6CRXOEM6542NVNPA6HRIZ3CBFKEAC
// marker: marker::PhantomData<&'a R>, //TODO: do we need this marker?
return Err(Error::Other("FrameParameterUnsupported"));
Err(Error::Other("FrameParameterUnsupported"))
return self.framelog.write_seek_table(output);
self.framelog.write_seek_table(output)
.seek(io::SeekFrom::End(-(SEEK_TABLE_FOOTER_SIZE as i64)));
.seek(io::SeekFrom::End(-(SEEK_TABLE_FOOTER_SIZE as i64)))?;
handle.read(&mut self.in_buff);
handle.read_exact(&mut self.in_buff)?;
self.src.seek(io::SeekFrom::End(-(frame_size as i64)));
self.src.seek(io::SeekFrom::End(-(frame_size as i64)))?;
handle.read(&mut self.in_buff)?;
handle .read(unsafe { slice::from_raw_parts_mut(buffer_ptr.add(offset), to_read) })?;
handle
.read(unsafe { slice::from_raw_parts_mut(buffer_ptr.add(offset), to_read) })?;
handle.read_exact(unsafe { slice::from_raw_parts_mut(buffer_ptr.add(offset), to_read) })?;
handle.read_exact(unsafe {
slice::from_raw_parts_mut(buffer_ptr.add(offset), to_read)
})?;
pub fn decompress( &mut self, out: &mut [u8], len: usize, offset: u64, ) -> Result<usize, Error> {
pub fn decompress(
&mut self,
out: &mut [u8],
len: usize,
offset: u64,
) -> Result<usize, Error> {
pub fn decompress(&mut self, out: &mut [u8], len: usize, offset: u64) -> Result<usize, Error> {
));
))?;
.read(&mut self.in_buff) .map_err(|_| Error::Other("Not able to read buffer"));
.read(&mut self.in_buff)
.map_err(|_| Error::Other("Not able to read buffer"));
.read_exact(&mut self.in_buff) .map_err(|_| Error::Other("Not able to read buffer"))?;
.read_exact(&mut self.in_buff)
.map_err(|_| Error::Other("Not able to read buffer"))?;
return SKIPPABLE_HEADER_SIZE + size_p_frame * self.entries.len() + SEEK_TABLE_FOOTER_SIZE;
SKIPPABLE_HEADER_SIZE + size_p_frame * self.entries.len() + SEEK_TABLE_FOOTER_SIZE
.and_then(|el| Some(*el = sfd)) .ok_or(Error::Other("index out of bounds"));
.and_then(|el| Some(*el = sfd))
.ok_or(Error::Other("index out of bounds"));
.map(|el| *el = sfd) .ok_or(Error::Other("index out of bounds"))?;
.map(|el| *el = sfd)
.ok_or(Error::Other("index out of bounds"))?;