| 1352 | } |
| 1353 | |
| 1354 | void WriteBytes(const void *val, size_t size) { |
| 1355 | buf_.insert(buf_.end(), reinterpret_cast<const uint8_t *>(val), |
| 1356 | reinterpret_cast<const uint8_t *>(val) + size); |
| 1357 | } |
| 1358 | |
| 1359 | template<typename T> void Write(T val, size_t byte_width) { |
| 1360 | FLATBUFFERS_ASSERT(sizeof(T) >= byte_width); |
no test coverage detected