Add UnknownBufferType::len()

This commit is contained in:
Pierre Krieger 2015-09-10 21:21:46 +02:00
parent 36b1a6d016
commit 3dd7a8abe7
4 changed files with 23 additions and 0 deletions

View file

@ -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 {