Function init [src]
Prototype
pub fn init(allocator: Allocator, path: []const u8) !Pdb
Parameters
allocator: Allocator
path: []const u8
Source
pub fn init(allocator: Allocator, path: []const u8) !Pdb {
const file = try std.fs.cwd().openFile(path, .{});
errdefer file.close();
return .{
.in_file = file,
.allocator = allocator,
.string_table = null,
.dbi = null,
.msf = try Msf.init(allocator, file),
.modules = &[_]Module{},
.sect_contribs = &[_]pdb.SectionContribEntry{},
.guid = undefined,
.age = undefined,
};
}