Return a block of contiguous padding bytes, growing if needed.
| 449 | |
| 450 | // Return a block of contiguous padding bytes, growing if needed. |
| 451 | Value makePadding(int size) { |
| 452 | static Value pad; |
| 453 | if (pad.size() < size) { |
| 454 | pad = makeString(size); |
| 455 | memset(mutateString(pad), '\xff', pad.size()); |
| 456 | } |
| 457 | |
| 458 | return pad.substr(0, size); |
| 459 | } |
| 460 | |
| 461 | // File Format handlers. |
| 462 | // Both Range and Log formats are designed to be readable starting at any 1MB boundary |
no test coverage detected