Returns the power-of-two alignment of this struct's frame.
Returns the power-of-two alignment of this struct's frame. This alignment must evenly divide all storage addresses used for values of this type.
Loads a struct instance from data.
Loads a struct instance from data.
the data to load from.
the aligned address in data
to load from.
the loaded instance.
Returns the size in bytes of this struct's frame.
Returns the size in bytes of this struct's frame. The struct's alignment must evenly divide this size.
Stores a struct instance as data.
Stores a struct instance as data.
the data to store to.
the aligned address in data
to store to.
the instance to store.
A typeclass for binary data structures.
A struct's
alignment
,offset
andsize
constitute its frame; the alignment must evenly divide the offset and size. Structs must never access more thansize - 1
bytes beyond a given address, and should assume proper alignment of provided addresses.This struct's instance type.