Reset all state so we can re-use the buffer.
| 925 | |
| 926 | // Reset all state so we can re-use the buffer. |
| 927 | void Clear() { |
| 928 | buf_.clear(); |
| 929 | stack_.clear(); |
| 930 | finished_ = false; |
| 931 | // flags_ remains as-is; |
| 932 | force_min_bit_width_ = BIT_WIDTH_8; |
| 933 | key_pool.clear(); |
| 934 | string_pool.clear(); |
| 935 | } |
| 936 | |
| 937 | // All value constructing functions below have two versions: one that |
| 938 | // takes a key (for placement inside a map) and one that doesn't (for inside |
no outgoing calls
no test coverage detected