pub(crate) struct AvroCursor<'a> {
buf: &'a [u8],
start_len: usize,
}
Expand description
A wrapper around a byte slice, providing low-level decoding for Avro
https://avro.apache.org/docs/1.11.1/specification/#encodings
Fields§
§buf: &'a [u8]
§start_len: usize
Implementations§
Source§impl<'a> AvroCursor<'a>
impl<'a> AvroCursor<'a>
pub(crate) fn new(buf: &'a [u8]) -> Self
pub(crate) fn get_bool(&mut self) -> Result<bool, ArrowError>
pub(crate) fn read_vlq(&mut self) -> Result<u64, ArrowError>
pub(crate) fn get_int(&mut self) -> Result<i32, ArrowError>
pub(crate) fn get_long(&mut self) -> Result<i64, ArrowError>
pub(crate) fn get_bytes(&mut self) -> Result<&'a [u8], ArrowError>
pub(crate) fn get_float(&mut self) -> Result<f32, ArrowError>
pub(crate) fn get_double(&mut self) -> Result<f64, ArrowError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for AvroCursor<'a>
impl<'a> RefUnwindSafe for AvroCursor<'a>
impl<'a> Send for AvroCursor<'a>
impl<'a> Sync for AvroCursor<'a>
impl<'a> Unpin for AvroCursor<'a>
impl<'a> UnwindSafe for AvroCursor<'a>
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