DoxigAlpha

addExtraAssumeCapacity

Function parameters

Parameters

#
wip:*Wip
extra:anytype

Type definitions in this namespace

Types

#
ErrorMessageList
There will be a MessageIndex for each len at start.
SourceLocation
Trailing:
ErrorMessage
Trailing:

Functions in this namespace

Functions

#
nullTerminatedString
Given an index into `string_bytes` returns the null-terminated string found there.

Special encoding when there are no errors.

Values

#
empty
Special encoding when there are no errors.

Source

Implementation

#
fn addExtraAssumeCapacity(wip: *Wip, extra: anytype) u32 {
    const fields = @typeInfo(@TypeOf(extra)).@"struct".fields;
    const result: u32 = @intCast(wip.extra.items.len);
    wip.extra.items.len += fields.len;
    setExtra(wip, result, extra);
    return result;
}