Function getBuildVersionTools [src]

Asserts LoadCommand is of type build_version_command.

Prototype

pub fn getBuildVersionTools(lc: LoadCommand) []align(1) const build_tool_version

Parameters

lc: LoadCommand

Source

pub fn getBuildVersionTools(lc: LoadCommand) []align(1) const build_tool_version { const build_lc = lc.cast(build_version_command).?; const ntools = build_lc.ntools; if (ntools == 0) return &[0]build_tool_version{}; const data = lc.data[@sizeOf(build_version_command)..]; const tools = @as([*]align(1) const build_tool_version, @ptrCast(data.ptr))[0..ntools]; return tools; }