| 471 | } |
| 472 | |
| 473 | void ClumpletWriter::deleteClumplet() |
| 474 | { |
| 475 | const UCHAR* clumplet = getBuffer() + cur_offset; |
| 476 | const UCHAR* buffer_end = getBufferEnd(); |
| 477 | |
| 478 | // Check for EOF |
| 479 | if (clumplet >= buffer_end) |
| 480 | { |
| 481 | usage_mistake("write past EOF"); |
| 482 | return; |
| 483 | } |
| 484 | |
| 485 | if (buffer_end - clumplet < 2) |
| 486 | { |
| 487 | // It appears we're erasing EOF marker |
| 488 | dynamic_buffer.shrink(cur_offset); |
| 489 | } |
| 490 | else { |
| 491 | dynamic_buffer.removeCount(cur_offset, getClumpletSize(true, true, true)); |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | bool ClumpletWriter::deleteWithTag(UCHAR tag) |
| 496 | { |
no test coverage detected