Function getNameOffset [src]

Prototype

pub fn getNameOffset(self: Symbol) ?u32

Parameters

self: Symbol

Source

pub fn getNameOffset(self: Symbol) ?u32 { if (!std.mem.eql(u8, self.name[0..4], "\x00\x00\x00\x00")) return null; const offset = std.mem.readInt(u32, self.name[4..8], .little); return offset; }