| 35 | } |
| 36 | |
| 37 | static void write_bits( |
| 38 | std::vector<bool>& bits, unsigned& cursor, uint32_t data, int width) |
| 39 | { |
| 40 | cursor += width; |
| 41 | for (int i = 0; i < width; i++) |
| 42 | { |
| 43 | unsigned pos = cursor - i - 1; |
| 44 | if (pos < bits.size()) |
| 45 | bits[pos] = data & 1; |
| 46 | data >>= 1; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | static void write_sector_header( |
| 51 | std::vector<bool>& bits, unsigned& cursor, int track, int sector) |
no test coverage detected