Skip to documentation
SLOP

tiny.choir.backends.artifact.model.payload.debug

Reference tiny.choir backends artifact model payload debug

Defined in backends.artifact.model.payload.

API (5)

Actions

Public operations.

Types and contracts

Public types and contracts.

No direct callersNo direct callsbackends.artifact.model.payloaddebug
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/choir/src/backends/artifact/model/payload/debug.zig

zig
const std = @import("std");const payload = @import("root.zig");const Allocator = std.mem.Allocator;pub const DebugRecordKind = enum(u8) {    line_table = 1,    symbol_table = 2,    dwarf_section = 3,    source_map = 4,    note = 5,};pub const DebugRecord = struct {    name: []const u8,    kind: DebugRecordKind,    bytes: []const u8,    pub fn dupe(self: DebugRecord, allocator: Allocator) Allocator.Error!DebugRecord {        const name = try payload.slice.dupe(allocator, self.name);        errdefer payload.slice.free(allocator, name);        return .{            .name = name,            .kind = self.kind,            .bytes = try payload.slice.dupe(allocator, self.bytes),        };    }    pub fn deinit(self: DebugRecord, allocator: Allocator) void {        payload.slice.free(allocator, self.name);        payload.slice.free(allocator, self.bytes);    }    pub fn eql(self: DebugRecord, other: DebugRecord) bool {        return self.kind == other.kind and            std.mem.eql(u8, self.name, other.name) and            std.mem.eql(u8, self.bytes, other.bytes);    }};

Source: lib/choir/src/backends/artifact/model/payload/root.zig:4

zig
pub const debug = @import("debug.zig");

Audit

Definitions6
Public names21
Members8
Version26.7.0
Revisiondaab053ee433