diff options
author | Milo Yip <miloyip@gmail.com> | 2014-07-24 20:08:24 +0400 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2014-07-24 20:08:24 +0400 |
commit | 86b2f51a58c0dd5cb9732f8d1f7edcc88b25ce0f (patch) | |
tree | 058b16ccd392c39b2aba3a8252c5a36844c57204 /include/rapidjson/stringbuffer.h | |
parent | 74a135678a9994be50cab0cd9ef0b899b2753f57 (diff) |
Use branchlut implementation for itoa conversion.
Diffstat (limited to 'include/rapidjson/stringbuffer.h')
-rw-r--r-- | include/rapidjson/stringbuffer.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/rapidjson/stringbuffer.h b/include/rapidjson/stringbuffer.h index 8c7eb4f1..0e89f959 100644 --- a/include/rapidjson/stringbuffer.h +++ b/include/rapidjson/stringbuffer.h @@ -22,7 +22,8 @@ struct GenericStringBuffer { void Flush() {}
void Clear() { stack_.Clear(); }
- Ch* Allocate(size_t count) { return stack_.template Push<Ch>(count); }
+ Ch* Push(size_t count) { return stack_.template Push<Ch>(count); }
+ void Pop(size_t count) { stack_.template Pop<Ch>(count); }
const Ch* GetString() const {
// Push and pop a null terminator. This is safe.
|