deinit
Function parameters
Parameters
- ma:*MemoryAccessor
Functions in this namespace
Functions
= .{ .mem = switch (native_os) { .linux => .{ .handle = -1 }, else => {}, }, }
Values
- init
- = .{ .mem = switch (native_os) { .linux => .{ .handle = -1 }, else => {}, }, }
Source
Implementation
pub fn deinit(ma: *MemoryAccessor) void {
switch (native_os) {
.linux => switch (ma.mem.handle) {
-2, -1 => {},
else => ma.mem.close(),
},
else => {},
}
ma.* = undefined;
}