| 321 | } |
| 322 | |
| 323 | void writeBytes(hfsfile* file, const Bytes& bytes) |
| 324 | { |
| 325 | unsigned pos = 0; |
| 326 | while (pos != bytes.size()) |
| 327 | { |
| 328 | unsigned long done = |
| 329 | hfs_write(file, bytes.cbegin() + pos, bytes.size() - pos); |
| 330 | pos += done; |
| 331 | } |
| 332 | } |
| 333 | |
| 334 | private: |
| 335 | class HfsMount |