pub fn init_header<T: LayoutContract>(data: &mut [u8]) -> ProgramResultExpand description
Initialize an account’s header from a layout contract type.
Convenience wrapper that pulls disc, version, layout_id, and schema_epoch from the type.
pub fn init_header<T: LayoutContract>(data: &mut [u8]) -> ProgramResultInitialize an account’s header from a layout contract type.
Convenience wrapper that pulls disc, version, layout_id, and schema_epoch from the type.