| 91 | } |
| 92 | |
| 93 | bool read_be32 (std::istream& in, uint32_t& i) |
| 94 | { |
| 95 | unsigned char buffer[4]; |
| 96 | in.read(reinterpret_cast<char*>(buffer), 4); |
| 97 | if (in.gcount() != 4) { |
| 98 | return false; |
| 99 | } |
| 100 | i = load_be32(buffer); |
| 101 | return true; |
| 102 | } |
| 103 | |
| 104 | void write_be32 (std::ostream& out, uint32_t i) |
| 105 | { |
no test coverage detected