tiny.tldr.formats.elf.layout.merge
Defined in formats.elf.layout.
API (5)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
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
| Definitions | 6 |
|---|---|
| Public names | 10 |
| Members | 6 |
| Version | 26.7.0 |
| Revision | daab053ee433 |