Function deinit [src]
Prototype
pub fn deinit(self: *File, gpa: Allocator) void
Parameters
self: *File
gpa: Allocator
Source
pub fn deinit(self: *File, gpa: Allocator) void {
gpa.free(self.prefixed_path.sub_path);
if (self.contents) |contents| {
gpa.free(contents);
self.contents = null;
}
self.* = undefined;
}