pub fn getSections(lc: LoadCommand) []align(1) const section_64 lc: LoadCommand1954
1955
1956
1957
1958 pub fn getSections(lc: LoadCommand) []align(1) const section_64 {
const segment_lc = lc.cast(segment_command_64).?;
const sects_ptr: [*]align(1) const section_64 = @ptrCast(lc.data[@sizeOf(segment_command_64)..]);
return sects_ptr[0..segment_lc.nsects];
}
Asserts LoadCommand is of type segment_command_64. If the native endian is not
.little, thesection_64values must be byte-swapped by the caller.