#[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 PartialEq<Block> for Block
impl PartialEq<Block> for Block
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 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