Type Function strtab [src]
Prototype
pub fn strtab(self: Index, builder: *const Builder) struct { offset: u32, size: u32, }
Parameters
self: Index
builder: *const Builder
Source
pub fn strtab(self: Index, builder: *const Builder) struct {
offset: u32,
size: u32,
} {
const name_index = self.name(builder).toIndex() orelse return .{
.offset = 0,
.size = 0,
};
return .{
.offset = builder.strtab_string_indices.items[name_index],
.size = builder.strtab_string_indices.items[name_index + 1] -
builder.strtab_string_indices.items[name_index],
};
}