| 1362 | } |
| 1363 | |
| 1364 | void WriteBytes(const void *val, size_t size) { |
| 1365 | buf_.insert(buf_.end(), reinterpret_cast<const uint8_t *>(val), |
| 1366 | reinterpret_cast<const uint8_t *>(val) + size); |
| 1367 | } |
| 1368 | |
| 1369 | template<typename T> void Write(T val, size_t byte_width) { |
| 1370 | FLATBUFFERS_ASSERT(sizeof(T) >= byte_width); |
no test coverage detected