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

BasicType

Public Struct
std.zig.llvm.Builder.Metadata.BasicType
pub const BasicType = struct

Fields

name: Metadata.String.Optional
size_in_bits_lo: u32
size_in_bits_hi: u32

Functions

pub fn bitSize(self: BasicType) u64

File

zig/llvm/Builder.zig:9463
9463
9464
9465
9466
9467
9468
9469
9470
9471
    pub const BasicType = struct {
        name: Metadata.String.Optional,
        size_in_bits_lo: u32,
        size_in_bits_hi: u32,

        pub fn bitSize(self: BasicType) u64 {
            return @as(u64, self.size_in_bits_hi) << 32 | self.size_in_bits_lo;
        }
    }