| 270 | } |
| 271 | |
| 272 | Bytes Bytes::swab() const |
| 273 | { |
| 274 | Bytes output; |
| 275 | ByteWriter bw(output); |
| 276 | ByteReader br(*this); |
| 277 | |
| 278 | while (!br.eof()) |
| 279 | { |
| 280 | uint8_t a = br.read_8(); |
| 281 | uint8_t b = br.read_8(); |
| 282 | bw.write_8(b); |
| 283 | bw.write_8(a); |
| 284 | } |
| 285 | |
| 286 | return output; |
| 287 | } |
| 288 | |
| 289 | Bytes Bytes::compress() const |
| 290 | { |
no test coverage detected