Trait assembly_fdb::ro::buffer::BufferExt
source · pub trait BufferExt: Buffer {
// Required methods
fn get_len_at(&self, start: usize, len: usize) -> Res<&[u8]>;
fn string(&self, addr: u32) -> Res<&Latin1Str>;
fn i64(&self, addr: u32) -> Res<i64>;
fn table_def_header(&self, addr: u32) -> Res<FDBTableDefHeader>;
fn table_data_header(&self, addr: u32) -> Res<FDBTableDataHeader>;
fn row_header_list_entry(&self, addr: u32) -> Res<FDBRowHeaderListEntry>;
fn row_header(&self, addr: u32) -> Res<FDBRowHeader>;
}
Expand description
Additional methods on &[u8]
Required Methods§
sourcefn get_len_at(&self, start: usize, len: usize) -> Res<&[u8]>
fn get_len_at(&self, start: usize, len: usize) -> Res<&[u8]>
Get a subslice a the given offset of the given length
sourcefn table_def_header(&self, addr: u32) -> Res<FDBTableDefHeader>
fn table_def_header(&self, addr: u32) -> Res<FDBTableDefHeader>
Get the table definition header at the given addr.
sourcefn table_data_header(&self, addr: u32) -> Res<FDBTableDataHeader>
fn table_data_header(&self, addr: u32) -> Res<FDBTableDataHeader>
Get the table data header at the given addr.
sourcefn row_header_list_entry(&self, addr: u32) -> Res<FDBRowHeaderListEntry>
fn row_header_list_entry(&self, addr: u32) -> Res<FDBRowHeaderListEntry>
Get the FDBRowHeader
list entry at the given addr.
sourcefn row_header(&self, addr: u32) -> Res<FDBRowHeader>
fn row_header(&self, addr: u32) -> Res<FDBRowHeader>
Get the FDBRowHeader
at the given addr.
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl BufferExt for [u8]
impl BufferExt for [u8]
source§fn get_len_at(&self, start: usize, len: usize) -> Res<&[u8]>
fn get_len_at(&self, start: usize, len: usize) -> Res<&[u8]>
Get a subslice a the given offset of the given length
source§fn row_header_list_entry(&self, addr: u32) -> Res<FDBRowHeaderListEntry>
fn row_header_list_entry(&self, addr: u32) -> Res<FDBRowHeaderListEntry>
Get the FDBRowHeader
list entry at the given addr.
source§fn row_header(&self, addr: u32) -> Res<FDBRowHeader>
fn row_header(&self, addr: u32) -> Res<FDBRowHeader>
Get the FDBRowHeader
at the given addr.