DoxigAlpha

get

Function parameters

Parameters

#
p:[*]align(@alignOf(Fields)) const u8

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 get(self: Self, p: [*]align(@alignOf(Fields)) const u8, comptime field: FieldEnum) ?Field(field) {
    if (!self.has(field))
        return null;
    return self.ptrConst(p, field).*;
}