Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Struct

nlist_64

Public Struct
std.macho.nlist_64
pub const nlist_64 = extern struct

Fields

n_strx: u32
n_type: packed union(u8) { bits: packed struct(u8) { ext: bool, type: enum(u3) { undf = 0, abs = 1, sect = 7, pbud = 6, indr = 5, _, }, pext: bool, /// Any non-zero value indicates this is an stab, so the `stab` field should be used. is_stab: u3, }, stab: enum(u8) { gsym = N_GSYM, fname = N_FNAME, fun = N_FUN, stsym = N_STSYM, lcsym = N_LCSYM, bnsym = N_BNSYM, ast = N_AST, opt = N_OPT, rsym = N_RSYM, sline = N_SLINE, ensym = N_ENSYM, ssym = N_SSYM, so = N_SO, oso = N_OSO, lsym = N_LSYM, bincl = N_BINCL, sol = N_SOL, params = N_PARAMS, version = N_VERSION, olevel = N_OLEVEL, psym = N_PSYM, eincl = N_EINCL, entry = N_ENTRY, lbrac = N_LBRAC, excl = N_EXCL, rbrac = N_RBRAC, bcomm = N_BCOMM, ecomm = N_ECOMM, ecoml = N_ECOML, leng = N_LENG, _, }, }
n_sect: u8
n_desc: packed struct(u16) { _pad0: u3 = 0, arm_thumb_def: bool, referenced_dynamically: bool, /// The meaning of this bit is contextual. /// See `N_DESC_DISCARDED` and `N_NO_DEAD_STRIP`. discarded_or_no_dead_strip: bool, weak_ref: bool, /// The meaning of this bit is contextual. /// See `N_WEAK_DEF` and `N_REF_TO_WEAK`. weak_def_or_ref_to_weak: bool, symbol_resolver: bool, alt_entry: bool, _pad2: u6 = 0, }
n_value: u64

Functions

pub fn tentative(sym: nlist_64) bool

File

macho.zig:871
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
pub const nlist_64 = extern struct {
    n_strx: u32,
    n_type: packed union(u8) {
        bits: packed struct(u8) {
            ext: bool,
            type: enum(u3) {
                undf = 0,
                abs = 1,
                sect = 7,
                pbud = 6,
                indr = 5,
                _,
            },
            pext: bool,
            /// Any non-zero value indicates this is an stab, so the `stab` field should be used.
            is_stab: u3,
        },
        stab: enum(u8) {
            gsym = N_GSYM,
            fname = N_FNAME,
            fun = N_FUN,
            stsym = N_STSYM,
            lcsym = N_LCSYM,
            bnsym = N_BNSYM,
            ast = N_AST,
            opt = N_OPT,
            rsym = N_RSYM,
            sline = N_SLINE,
            ensym = N_ENSYM,
            ssym = N_SSYM,
            so = N_SO,
            oso = N_OSO,
            lsym = N_LSYM,
            bincl = N_BINCL,
            sol = N_SOL,
            params = N_PARAMS,
            version = N_VERSION,
            olevel = N_OLEVEL,
            psym = N_PSYM,
            eincl = N_EINCL,
            entry = N_ENTRY,
            lbrac = N_LBRAC,
            excl = N_EXCL,
            rbrac = N_RBRAC,
            bcomm = N_BCOMM,
            ecomm = N_ECOMM,
            ecoml = N_ECOML,
            leng = N_LENG,
            _,
        },
    },
    n_sect: u8,
    n_desc: packed struct(u16) {
        _pad0: u3 = 0,
        arm_thumb_def: bool,
        referenced_dynamically: bool,
        /// The meaning of this bit is contextual.
        /// See `N_DESC_DISCARDED` and `N_NO_DEAD_STRIP`.
        discarded_or_no_dead_strip: bool,
        weak_ref: bool,
        /// The meaning of this bit is contextual.
        /// See `N_WEAK_DEF` and `N_REF_TO_WEAK`.
        weak_def_or_ref_to_weak: bool,
        symbol_resolver: bool,
        alt_entry: bool,
        _pad2: u6 = 0,
    },
    n_value: u64,

    pub fn tentative(sym: nlist_64) bool {
        return sym.n_type.bits.type == .undf and sym.n_value != 0;
    }
}