Home
last modified time | relevance | path

Searched refs:dynamic_buf_ (Results 1 – 1 of 1) sorted by relevance

/frameworks/libs/binary_translation/base/include/berberis/base/
Dformat_buffer.h302 DynamicCStrBuffer() : static_cur_(static_buf_), dynamic_buf_(&arena_) {} in DynamicCStrBuffer()
306 dynamic_buf_ += c; in Put()
310 dynamic_buf_.append(static_buf_, kStaticSize); in Put()
317 size_t Size() const { return IsDynamic() ? dynamic_buf_.size() : (static_cur_ - static_buf_); } in Size()
319 const char* Data() const { return IsDynamic() ? dynamic_buf_.data() : static_buf_; } in Data()
324 bool IsDynamic() const { return !dynamic_buf_.empty(); } in IsDynamic()
333 ArenaString dynamic_buf_; variable