Function deinit [src]

Prototype

pub fn deinit(self: *BufferGroup, allocator: mem.Allocator) void

Parameters

self: *BufferGroupallocator: mem.Allocator

Source

pub fn deinit(self: *BufferGroup, allocator: mem.Allocator) void { free_buf_ring(self.ring.fd, self.br, self.buffers_count, self.group_id); allocator.free(self.buffers); allocator.free(self.heads); }