Expand description
A Buffer represents a single contiguous memory segment
Tuple Fields§
§0: [u8; 16]
Implementations§
source§impl<'a> Buffer
impl<'a> Buffer
pub fn new(offset: i64, length: i64) -> Self
sourcepub fn offset(&self) -> i64
pub fn offset(&self) -> i64
The relative offset into the shared memory page where the bytes for this buffer starts
pub fn set_offset(&mut self, x: i64)
sourcepub fn length(&self) -> i64
pub fn length(&self) -> i64
The absolute length (in bytes) of the memory buffer. The memory is found from offset (inclusive) to offset + length (non-inclusive). When building messages using the encapsulated IPC message, padding bytes may be written after a buffer, but such padding bytes do not need to be accounted for in the size here.
pub fn set_length(&mut self, x: i64)
Trait Implementations§
source§impl PartialEq<Buffer> for Buffer
impl PartialEq<Buffer> for Buffer
source§impl<'a> Verifiable for Buffer
impl<'a> Verifiable for Buffer
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.