#[repr(transparent)]pub struct Block(pub [u8; 24]);
Tuple Fields§
§0: [u8; 24]
Implementations§
Source§impl<'a> Block
impl<'a> Block
pub fn new(offset: i64, metaDataLength: i32, bodyLength: i64) -> Self
Sourcepub fn offset(&self) -> i64
pub fn offset(&self) -> i64
Index to the start of the RecordBlock (note this is past the Message header)
pub fn set_offset(&mut self, x: i64)
Sourcepub fn metaDataLength(&self) -> i32
pub fn metaDataLength(&self) -> i32
Length of the metadata
pub fn set_metaDataLength(&mut self, x: i32)
Sourcepub fn bodyLength(&self) -> i64
pub fn bodyLength(&self) -> i64
Length of the data (this is aligned so there can be a gap between this and the metadata).
pub fn set_bodyLength(&mut self, x: i64)
Trait Implementations§
Source§impl<'a> Verifiable for Block
impl<'a> Verifiable for Block
Source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize,
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize, ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl Copy for Block
impl SimpleToVerifyInSlice for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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