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 Function

getBuildVersionTools

Public Function
std.macho.LoadCommandIterator.LoadCommand.getBuildVersionTools
pub fn getBuildVersionTools(lc: LoadCommand) []align(1) const build_tool_version

Asserts LoadCommand is of type build_version_command. If the native endian is not .little, the build_tool_version values must be byte-swapped by the caller.

Params

File

macho.zig:1974
1974
1975
1976
1977
1978
        pub fn getBuildVersionTools(lc: LoadCommand) []align(1) const build_tool_version {
            const build_lc = lc.cast(build_version_command).?;
            const tools_ptr: [*]align(1) const build_tool_version = @ptrCast(lc.data[@sizeOf(build_version_command)..]);
            return tools_ptr[0..build_lc.ntools];
        }