tiny.tldr.formats.elf.addressing.Boundary.Context
Defined in formats.elf.addressing.Boundary.
API (2)
Actions
Public operations.
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); } };Also reachable as
formats.elf.addressing.boundary.Boundary.Context.
Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |