tmp: implement mechanisms for a emu reset fn (currently crashes)
This commit is contained in:
@@ -35,6 +35,10 @@ pub fn init(allocator: Allocator) !Self {
|
||||
};
|
||||
}
|
||||
|
||||
pub fn reset(self: *Self) void {
|
||||
std.mem.set(u8, self.buf, 0);
|
||||
}
|
||||
|
||||
pub fn deinit(self: *Self) void {
|
||||
self.allocator.free(self.buf);
|
||||
self.* = undefined;
|
||||
|
Reference in New Issue
Block a user