| 47 | Buffer(); |
| 48 | |
| 49 | Buffer(uint8_t *data, uint32_t size, bool own_data = true) |
| 50 | : data_(data), size_(size), own_data_(own_data), wrapped_vector_(nullptr), |
| 51 | input_stream_(nullptr), output_stream_(nullptr) { |
| 52 | writer_index_ = 0; |
| 53 | reader_index_ = 0; |
| 54 | } |
| 55 | |
| 56 | /// Wrap an existing vector for zero-copy serialization. |
| 57 | /// The buffer will append to the vector starting from its current size. |
nothing calls this directly
no test coverage detected