Methods which work with currently selected clumplet
| 778 | |
| 779 | // Methods which work with currently selected clumplet |
| 780 | UCHAR ClumpletReader::getClumpTag() const |
| 781 | { |
| 782 | const UCHAR* clumplet = getBuffer() + cur_offset; |
| 783 | const UCHAR* const buffer_end = getBufferEnd(); |
| 784 | |
| 785 | // Check for EOF |
| 786 | if (clumplet >= buffer_end) |
| 787 | { |
| 788 | usage_mistake("read past EOF"); |
| 789 | return 0; |
| 790 | } |
| 791 | |
| 792 | return clumplet[0]; |
| 793 | } |
| 794 | |
| 795 | FB_SIZE_T ClumpletReader::getClumpLength() const |
| 796 | { |