pub struct BroCatli {
last_bytes: [u8; 2],
last_bytes_len: u8,
last_byte_sanitized: bool,
any_bytes_emitted: bool,
last_byte_bit_offset: u8,
window_size: u8,
new_stream_pending: Option<NewStreamData>,
}
Fields§
§last_bytes: [u8; 2]
§last_bytes_len: u8
§last_byte_sanitized: bool
§any_bytes_emitted: bool
§last_byte_bit_offset: u8
§window_size: u8
§new_stream_pending: Option<NewStreamData>
Implementations§
source§impl BroCatli
impl BroCatli
pub fn new() -> Self
pub fn deserialize_from_buffer(buffer: &[u8]) -> Result<BroCatli, ()>
pub fn serialize_to_buffer(&self, buffer: &mut [u8]) -> Result<(), ()>
pub fn new_with_window_size(log_window_size: u8) -> BroCatli
pub fn new_brotli_file(&mut self)
fn flush_previous_stream( &mut self, out_bytes: &mut [u8], out_offset: &mut usize, ) -> BroCatliResult
fn shift_and_check_new_stream_header( &mut self, new_stream_pending: NewStreamData, out_bytes: &mut [u8], out_offset: &mut usize, ) -> BroCatliResult
pub fn stream( &mut self, in_bytes: &[u8], in_offset: &mut usize, out_bytes: &mut [u8], out_offset: &mut usize, ) -> BroCatliResult
fn append_eof_metablock_to_last_bytes(&mut self)
pub fn finish( &mut self, out_bytes: &mut [u8], out_offset: &mut usize, ) -> BroCatliResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BroCatli
impl RefUnwindSafe for BroCatli
impl Send for BroCatli
impl Sync for BroCatli
impl Unpin for BroCatli
impl UnwindSafe for BroCatli
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