Struct solana_rbpf::aligned_memory::AlignedMemory [−][src]
pub struct AlignedMemory { /* fields omitted */ }
Expand description
Provides u8 slices at a specified alignment
Implementations
Return a pre-filled AlignedMemory type
Get the current write index
Get an aligned slice
Get an aligned mutable slice
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Write a buffer into this writer, returning how many bytes were written. Read more
Flush this output stream, ensuring that all intermediately buffered contents reach their destination. Read more
can_vector
)Determines if this Write
r has an efficient write_vectored
implementation. Read more
Attempts to write an entire buffer into this writer. Read more
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Writes a formatted string into this writer, returning any error encountered. Read more
Auto Trait Implementations
impl RefUnwindSafe for AlignedMemory
impl Send for AlignedMemory
impl Sync for AlignedMemory
impl Unpin for AlignedMemory
impl UnwindSafe for AlignedMemory
Blanket Implementations
Mutably borrows from an owned value. Read more
Writes the type N
into Self
, with the parsing context ctx
.
NB: this will panic if the type you’re writing has a size greater than 256. Plans are to have this allocate in larger cases. Read more
Writes the type N
into Self
, with the parsing context ctx
.
NB: this will panic if the type you’re writing has a size greater than 256. Plans are to have this allocate in larger cases. Read more
pub fn vzip(self) -> V
Writes an unsigned 8 bit integer to the underlying writer. Read more
Writes a signed 8 bit integer to the underlying writer. Read more
Writes an unsigned 16 bit integer to the underlying writer. Read more
Writes a signed 16 bit integer to the underlying writer. Read more
Writes an unsigned 24 bit integer to the underlying writer. Read more
Writes a signed 24 bit integer to the underlying writer. Read more
Writes an unsigned 32 bit integer to the underlying writer. Read more
Writes a signed 32 bit integer to the underlying writer. Read more
Writes an unsigned 48 bit integer to the underlying writer. Read more
Writes a signed 48 bit integer to the underlying writer. Read more
Writes an unsigned 64 bit integer to the underlying writer. Read more
Writes a signed 64 bit integer to the underlying writer. Read more
Writes an unsigned n-bytes integer to the underlying writer. Read more
Writes a signed n-bytes integer to the underlying writer. Read more
Writes a IEEE754 single-precision (4 bytes) floating point number to the underlying writer. Read more