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

Bytes

Public Struct
std.Build.Configuration.Bytes
pub const Bytes = extern struct

Arbitrary sequence of bytes that may contain null bytes.

Fields

index: u32

Points into string_bytes.

len: u32

Functions

pub fn slice(bytes: Bytes, c: *const Configuration) []const u8

File

Build/Configuration.zig:1955
1955
1956
1957
1958
1959
1960
1961
1962
1963
pub const Bytes = extern struct {
    /// Points into `string_bytes`.
    index: u32,
    len: u32,

    pub fn slice(bytes: Bytes, c: *const Configuration) []const u8 {
        return c.string_bytes[bytes.index..][0..bytes.len];
    }
}