fn asSymbol(raw: []const u8) Symbol
raw: []const u8
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276
fn asSymbol(raw: []const u8) Symbol { return .{ .name = raw[0..8].*, .value = mem.readInt(u32, raw[8..12], .little), .section_number = @as(SectionNumber, @fromBackingInt(@intCast(mem.readInt(u16, raw[12..14], .little)))), .type = @as(SymType, @bitCast(mem.readInt(u16, raw[14..16], .little))), .storage_class = @as(StorageClass, @fromBackingInt(@intCast(raw[16]))), .number_of_aux_symbols = raw[17], }; }