tiny.tldr.detectObjectFormat
Defined in formats.dispatch.
Source
Source: lib/tldr/src/formats/dispatch.zig:22
zig
pub fn detectObjectFormat(bytes: []const u8) root.Error!root.model.ObjectFormat { if (bytes.len >= 4 and std.mem.eql(u8, bytes[0..4], std.elf.MAGIC)) return .elf; if (isMachO(bytes)) return .macho; if (coff.isObject(bytes)) return .coff; return error.UnsupportedFormat;}Source: lib/tldr/src/root.zig:79
zig
pub const detectObjectFormat = formats.detectObjectFormat;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |