1
0
Fork 0

updated vpack library

This commit is contained in:
Jan Steemann 2015-12-17 14:39:39 +01:00
parent 58dbb81eba
commit 1ce6f6f8c0
1 changed files with 3 additions and 0 deletions

View File

@ -251,6 +251,7 @@ class Builder {
std::shared_ptr<Buffer<uint8_t>> steal() {
std::shared_ptr<Buffer<uint8_t>> res = std::move(_buffer);
_buffer.reset(new Buffer<uint8_t>());
_pos = 0;
return res;
}
@ -298,6 +299,8 @@ class Builder {
return _pos;
}
bool isEmpty() const throw() { return _pos == 0; }
bool isClosed() const throw() { return _stack.empty(); }
bool isOpenArray() const throw() {