Skip to documentation
SLOP

tiny.tldr.formats.elf.layout.merge

Reference tiny.tldr formats elf layout merge

Defined in formats.elf.layout.

API (5)

Actions

Public operations.

Types and contracts

Public types and contracts.

No direct callersNo direct callsformats.elf.layoutmerge
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Called byCallsNo direct callsformats.elf.layout.objectmergeSectionformats.elf.layout.mergesectionAt
Static calls · unresolved targets: 0 · external targets: 1.

Source: lib/tldr/src/formats/elf/layout/merge.zig

zig
const section = @import("section.zig");const SectionContribution = section.SectionContribution;pub const MergePieceLayout = struct {    input_offset: u64 = 0,    size: u64 = 0,    contribution: SectionContribution = .{},    output_intra_offset: u64 = 0,};pub const MergeSectionLayout = struct {    pieces: []MergePieceLayout = &.{},    fixed_piece_size: u64 = 0,    pub fn deinit(self: *MergeSectionLayout, allocator: anytype) void {        if (self.pieces.len != 0) allocator.free(self.pieces);    }    pub fn isPresent(self: MergeSectionLayout) bool {        return self.pieces.len != 0;    }};pub fn sectionAt(sections: []const MergeSectionLayout, section_index: usize) ?MergeSectionLayout {    if (section_index >= sections.len) return null;    const merge_section = sections[section_index];    if (!merge_section.isPresent()) return null;    return merge_section;}

Source: lib/tldr/src/formats/elf/layout/root.zig:4

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

Audit

Definitions6
Public names10
Members6
Version26.7.0
Revisiondaab053ee433