structstd.debug.Pdb.Module[src]

Fields

mod_info: pdb.ModInfo
module_name: []u8
obj_file_name: []u8
populated: bool
symbols: []u8
subsect_info: []u8
checksum_offset: ?usize

Functions

Functiondeinit[src]

pub fn deinit(self: *Module, allocator: Allocator) void

Parameters

self: *Module
allocator: Allocator

Source Code

Source code
pub fn deinit(self: *Module, allocator: Allocator) void {
    allocator.free(self.module_name);
    allocator.free(self.obj_file_name);
    if (self.populated) {
        allocator.free(self.symbols);
        allocator.free(self.subsect_info);
    }
}

Source Code

Source code
pub const Module = struct {
    mod_info: pdb.ModInfo,
    module_name: []u8,
    obj_file_name: []u8,
    // The fields below are filled on demand.
    populated: bool,
    symbols: []u8,
    subsect_info: []u8,
    checksum_offset: ?usize,

    pub fn deinit(self: *Module, allocator: Allocator) void {
        allocator.free(self.module_name);
        allocator.free(self.obj_file_name);
        if (self.populated) {
            allocator.free(self.symbols);
            allocator.free(self.subsect_info);
        }
    }
}