| 1 | #include "llama-io.h" |
| 2 | |
| 3 | void llama_io_write_i::write_string(const std::string & str) { |
| 4 | uint32_t str_size = str.size(); |
| 5 | |
| 6 | write(&str_size, sizeof(str_size)); |
| 7 | write(str.data(), str_size); |
| 8 | } |
| 9 | |
| 10 | void llama_io_read_i::read_string(std::string & str) { |
| 11 | uint32_t str_size; |
no test coverage detected