Function deinit [src]

Free the data backing a RingBuffer; must be passed the same Allocator as init().

Prototype

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

Parameters

self: *RingBufferallocator: Allocator

Source

pub fn deinit(self: *RingBuffer, allocator: Allocator) void { allocator.free(self.data); self.* = undefined; }