DoxigAlpha

set

Function parameters

Parameters

#
p:[*]align(@alignOf(Fields)) u8
value:Field(field)

This is useful for saving memory when allocating an object that has many

Functions

#
TrailerFlags
This is useful for saving memory when allocating an object that has many

Source

Implementation

#
pub fn set(
    self: Self,
    p: [*]align(@alignOf(Fields)) u8,
    comptime field: FieldEnum,
    value: Field(field),
) void {
    self.ptr(p, field).* = value;
}