#[repr(C)]pub struct os_mbuf {
pub om_data: *mut u8,
pub om_flags: u8,
pub om_pkthdr_len: u8,
pub om_len: u16,
pub om_omp: *mut os_mbuf_pool,
pub om_next: os_mbuf__bindgen_ty_1,
pub om_databuf: __IncompleteArrayField<u8>,
}
Expand description
Chained memory buffer.
Fields§
§om_data: *mut u8
Current pointer to data in the structure
om_flags: u8
Flags associated with this buffer, see OS_MBUF_F_* defintions
om_pkthdr_len: u8
Length of packet header
om_len: u16
Length of data in this buffer
om_omp: *mut os_mbuf_pool
The mbuf pool this mbuf was allocated out of
om_next: os_mbuf__bindgen_ty_1
§om_databuf: __IncompleteArrayField<u8>
Pointer to the beginning of the data, after this buffer
Trait Implementations§
Auto Trait Implementations§
impl Freeze for os_mbuf
impl RefUnwindSafe for os_mbuf
impl !Send for os_mbuf
impl !Sync for os_mbuf
impl Unpin for os_mbuf
impl UnwindSafe for os_mbuf
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes