pub struct BlockDecoder {
state: BlockDecoderState,
in_progress: Block,
vlq_decoder: VLQDecoder,
bytes_remaining: usize,
}
Expand description
A decoder for Block
Fields§
§state: BlockDecoderState
§in_progress: Block
§vlq_decoder: VLQDecoder
§bytes_remaining: usize
Implementations§
Source§impl BlockDecoder
impl BlockDecoder
Sourcepub fn decode(&mut self, buf: &[u8]) -> Result<usize, ArrowError>
pub fn decode(&mut self, buf: &[u8]) -> Result<usize, ArrowError>
Parse Block
from buf
, returning the number of bytes read
This method can be called multiple times with consecutive chunks of data, allowing
integration with chunked IO systems like BufRead::fill_buf
All errors should be considered fatal, and decoding aborted
Once an entire Block
has been decoded this method will not read any further
input bytes, until Self::flush
is called. Afterwards Self::decode
can then be used again to read the next block, if any
Trait Implementations§
Source§impl Debug for BlockDecoder
impl Debug for BlockDecoder
Auto Trait Implementations§
impl Freeze for BlockDecoder
impl RefUnwindSafe for BlockDecoder
impl Send for BlockDecoder
impl Sync for BlockDecoder
impl Unpin for BlockDecoder
impl UnwindSafe for BlockDecoder
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