native_model 0.6.2

A thin wrapper around serialized data which add information of identity and version.
Documentation
1
2
3
4
5
6
7
8
9
use zerocopy::little_endian::U32;
use zerocopy::{FromBytes, Immutable, IntoBytes, KnownLayout};

#[derive(FromBytes, IntoBytes, Immutable, KnownLayout, Debug)]
#[repr(C)]
pub struct Header {
    pub(crate) id: U32,
    pub(crate) version: U32,
}