Skip to main content

init_header

Function init_header 

Source
pub fn init_header<T: LayoutContract>(data: &mut [u8]) -> ProgramResult
Expand 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.