pub struct Blob {
bytes: Vec<u8>,
pointers: Vec<(usize, Target)>,
}Expand description
The bytes of one piece of data, and the pointers in it, which the linker fills in.
Fields§
§bytes: Vec<u8>§pointers: Vec<(usize, Target)>Implementations§
Source§impl Blob
impl Blob
Sourcepub fn zeroed(size: usize) -> Self
pub fn zeroed(size: usize) -> Self
size zero bytes, which read as empty slices, null pointers and zeros.
pub fn bytes(bytes: &[u8]) -> Self
pub fn put_u8(&mut self, offset: usize, value: u8)
pub fn put_u32(&mut self, offset: usize, value: u32)
pub fn put_i64(&mut self, offset: usize, value: i64)
pub fn put_f32(&mut self, offset: usize, value: f32)
pub fn put_usize(&mut self, offset: usize, value: usize)
pub fn put_pointer(&mut self, offset: usize, target: Target)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Blob
impl RefUnwindSafe for Blob
impl Send for Blob
impl Sync for Blob
impl Unpin for Blob
impl UnsafeUnpin for Blob
impl UnwindSafe for Blob
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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