Add UnknownBufferType::len()
This commit is contained in:
parent
36b1a6d016
commit
3dd7a8abe7
4 changed files with 23 additions and 0 deletions
|
|
@ -322,6 +322,10 @@ impl<'a, T> Buffer<'a, T> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn len(&self) -> usize {
|
||||
self.buffer_len
|
||||
}
|
||||
|
||||
pub fn finish(self) {
|
||||
// releasing buffer
|
||||
unsafe {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue