Skip to documentation
SLOP

tiny.tldr.formats.elf.addressing.Boundary.Context

Reference tiny.tldr formats elf addressing Boundary Context

Defined in formats.elf.addressing.Boundary.

API (2)

Actions

Public operations.

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

Source

Source: lib/tldr/src/formats/elf/address/boundary.zig:10

zig
pub const Context = struct {        pub fn hash(_: Context, boundary: Boundary) u64 {            var value = hashU64(0xd297a1b0a6e8d5f3, @intFromBool(boundary.stop));            value = hashU64(value, @intFromBool(boundary.optional));            value = hashU64(value, @intFromBool(boundary.match_prefix));            value = hashU64(value, @intFromBool(boundary.output_section));            return std.hash.Wyhash.hash(value, boundary.section_name);        }        pub fn eql(_: Context, left: Boundary, right: Boundary) bool {            return left.stop == right.stop and                left.optional == right.optional and                left.match_prefix == right.match_prefix and                left.output_section == right.output_section and                std.mem.eql(u8, left.section_name, right.section_name);        }    };
Called byCallsNo direct callersprivate sourcelib.tldr.src.formats.elf.address.boundaryhashU64formats.elf.addressing.Boundary.Contexthash
Static calls · unresolved targets: 0 · external targets: 0.

Also reachable as

formats.elf.addressing.boundary.Boundary.Context.

Audit

Definitions3
Public names6
Members0
Version26.7.0
Revisiondaab053ee433