| 188 | } |
| 189 | |
| 190 | void ClumpletWriter::reset(UCHAR tag) |
| 191 | { |
| 192 | if (kindList) |
| 193 | { |
| 194 | for (const KindList* kl = kindList; kl->kind != EndOfList; ++kl) |
| 195 | { |
| 196 | if (tag == kl->tag) |
| 197 | { |
| 198 | kind = kl->kind; |
| 199 | dynamic_buffer.shrink(0); |
| 200 | initNewBuffer(tag); |
| 201 | rewind(); |
| 202 | |
| 203 | return; |
| 204 | } |
| 205 | } |
| 206 | |
| 207 | invalid_structure("Unknown tag value - missing in the list of possible", tag); |
| 208 | } |
| 209 | |
| 210 | dynamic_buffer.shrink(0); |
| 211 | initNewBuffer(tag); |
| 212 | rewind(); |
| 213 | } |
| 214 | |
| 215 | void ClumpletWriter::reset(const UCHAR* buffer, const FB_SIZE_T buffLen) |
| 216 | { |