pub struct InitialRead {
pub buf: Bytes,
pub initial_read_offset: u64,
pub fb_postscript_byte_range: Range<usize>,
}Fields§
§buf: BytesThe bytes from the initial read of the file, which is assumed (for now) to be sufficiently large to contain the schema and layout.
initial_read_offset: u64The absolute byte offset representing the start of the initial read within the file.
fb_postscript_byte_range: Range<usize>The byte range within buf representing the Postscript flatbuffer.
Implementations§
Source§impl InitialRead
impl InitialRead
pub fn fb_postscript(&self) -> VortexResult<Postscript<'_>>
Sourcepub fn fb_layout_byte_range(&self) -> VortexResult<Range<usize>>
pub fn fb_layout_byte_range(&self) -> VortexResult<Range<usize>>
The bytes of the Layout flatbuffer.
Sourcepub fn fb_layout(&self) -> VortexResult<Layout<'_>>
pub fn fb_layout(&self) -> VortexResult<Layout<'_>>
The Layout flatbuffer.
Sourcepub fn fb_schema_byte_range(&self) -> VortexResult<Range<usize>>
pub fn fb_schema_byte_range(&self) -> VortexResult<Range<usize>>
The bytes of the Schema flatbuffer.
pub fn lazy_dtype(&self) -> VortexResult<LazyDType>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for InitialRead
impl RefUnwindSafe for InitialRead
impl Send for InitialRead
impl Sync for InitialRead
impl Unpin for InitialRead
impl UnwindSafe for InitialRead
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more