DoxigAlpha

writeConstType

Function parameters

Parameters

#
writer:anytype
die_offset:anytype
value_bytes:[]const u8

Expressions can be evaluated in different contexts, each requiring its own set of inputs.

Types

#
Context
Expressions can be evaluated in different contexts, each requiring its own set of inputs.

A stack machine that can decode and run DWARF expressions.

Functions

#
StackMachine
A stack machine that can decode and run DWARF expressions.

Error sets in this namespace

Error Sets

#

Source

Implementation

#
pub fn writeConstType(writer: anytype, die_offset: anytype, value_bytes: []const u8) !void {
    if (options.call_frame_context) return error.InvalidCFAOpcode;
    if (value_bytes.len > 0xff) return error.InvalidTypeLength;
    try writer.writeByte(OP.const_type);
    try leb.writeUleb128(writer, die_offset);
    try writer.writeByte(@intCast(value_bytes.len));
    try writer.writeAll(value_bytes);
}