tiny.filigree.layout.binary
Defined in layout.
API (3)
Actions
Public operations.
Types and contracts
Public types and contracts.
Source
Source: lib/filigree/src/layout/binary.zig
zig
const std = @import("std");pub const LayoutError = error{ InvalidLayout, UnsupportedCoverage, UnsupportedClassDef,};pub fn hasBytes(data: []const u8, offset: usize, len: usize) bool { return offset <= data.len and len <= data.len - offset;}pub fn readU16(data: []const u8, offset: usize) LayoutError!u16 { if (!hasBytes(data, offset, 2)) return error.InvalidLayout; return std.mem.readInt(u16, data[offset..][0..2], .big);}Source: lib/filigree/src/layout/root.zig:1
zig
pub const binary = @import("binary.zig");Audit
| Definitions | 4 |
|---|---|
| Public names | 5 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |