| 485 | } |
| 486 | |
| 487 | static bool WriteString(std::FILE* stream, const std::string& str) |
| 488 | { |
| 489 | const u32 size = static_cast<u32>(str.size()); |
| 490 | return (std::fwrite(&size, sizeof(size), 1, stream) > 0 && (size == 0 || std::fwrite(str.data(), size, 1, stream) > 0)); |
| 491 | } |
| 492 | |
| 493 | static bool WriteU8(std::FILE* stream, u8 dest) |
| 494 | { |
no test coverage detected