bundle.zig (500B)
1 //! All entrypoints share the validated indexed reader. Authentication of a 2 //! particular object's bytes belongs to its transport, not to bundle parsing. 3 const Arena = @import("arena.zig").Arena; 4 const indexed = @import("indexed.zig"); 5 6 pub fn loadBundleExport(arena: *Arena, bytes: []const u8, name: []const u8) !u32 { 7 return indexed.load(arena, bytes, name, false); 8 } 9 10 pub fn loadBundleDefaultRoot(arena: *Arena, bytes: []const u8) !u32 { 11 return indexed.load(arena, bytes, null, false); 12 }