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. Private Struct

PointerSpec

Private Struct
std.zig.llvm.Builder.DataLayout.PointerSpec
const PointerSpec = struct

Fields

bit_width: BitWidth
index_bit_width: BitWidth
flags: packed struct(u32) { abi_align: Alignment, pref_align: Alignment, has_unstable_repr: bool, has_external_state: bool, null_ptr_repr: NullPtrRepr, unused: u17 = 0, }
addr_space_name: String

Types

Values

File

zig/llvm/Builder.zig:411
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
    const PointerSpec = struct {
        bit_width: BitWidth,
        index_bit_width: BitWidth,
        flags: packed struct(u32) {
            abi_align: Alignment,
            pref_align: Alignment,
            has_unstable_repr: bool,
            has_external_state: bool,
            null_ptr_repr: NullPtrRepr,
            unused: u17 = 0,
        },
        addr_space_name: String,

        const BitWidth = u32;

        const NullPtrRepr = enum(u1) { all_zeros, all_ones };

        const Map = std.array_hash_map.Auto(AddrSpace, PointerSpec);
    }