Function strtabStringIfExists [src]

Prototype

pub fn strtabStringIfExists(self: *const Builder, bytes: []const u8) ?StrtabString

Parameters

self: *const Builderbytes: []const u8

Source

pub fn strtabStringIfExists(self: *const Builder, bytes: []const u8) ?StrtabString { return StrtabString.fromIndex( self.strtab_string_map.getIndexAdapted(bytes, StrtabString.Adapter{ .builder = self }) orelse return null, ); }