diff --git a/src/data.rs b/src/data.rs index 2e9cc77..79b4428 100644 --- a/src/data.rs +++ b/src/data.rs @@ -137,6 +137,10 @@ impl FixedVec { unsafe { core::slice::from_raw_parts(self.buffer.as_ptr() as *const T, self.length) } } + pub fn clear(&mut self) { + self.length = 0; + } + } impl Debug for FixedVec {