| 483 | }; |
| 484 | |
| 485 | static bool WriteFileBytes(const std::string& path, const uint8_t* data, size_t len) { |
| 486 | FILE* f = fopen(path.c_str(), "wb"); |
| 487 | if (!f) return false; |
| 488 | size_t w = fwrite(data, 1, len, f); |
| 489 | fclose(f); |
| 490 | return w == len; |
| 491 | } |
| 492 | |
| 493 | bool HandleInbound819(const uint8_t* data, uint32_t len) { |
| 494 | if (!data || len < 8) return false; |