mirror of https://gitee.com/bigwinds/arangodb
updated vpack library
This commit is contained in:
parent
58dbb81eba
commit
1ce6f6f8c0
|
@ -251,6 +251,7 @@ class Builder {
|
||||||
std::shared_ptr<Buffer<uint8_t>> steal() {
|
std::shared_ptr<Buffer<uint8_t>> steal() {
|
||||||
std::shared_ptr<Buffer<uint8_t>> res = std::move(_buffer);
|
std::shared_ptr<Buffer<uint8_t>> res = std::move(_buffer);
|
||||||
_buffer.reset(new Buffer<uint8_t>());
|
_buffer.reset(new Buffer<uint8_t>());
|
||||||
|
_pos = 0;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -298,6 +299,8 @@ class Builder {
|
||||||
return _pos;
|
return _pos;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isEmpty() const throw() { return _pos == 0; }
|
||||||
|
|
||||||
bool isClosed() const throw() { return _stack.empty(); }
|
bool isClosed() const throw() { return _stack.empty(); }
|
||||||
|
|
||||||
bool isOpenArray() const throw() {
|
bool isOpenArray() const throw() {
|
||||||
|
|
Loading…
Reference in New Issue