MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / reset

Method reset

src/common/classes/ClumpletWriter.cpp:190–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

188}
189
190void 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
215void ClumpletWriter::reset(const UCHAR* buffer, const FB_SIZE_T buffLen)
216{

Callers

nothing calls this directly

Calls 7

rewindFunction · 0.85
resetFunction · 0.50
shrinkMethod · 0.45
clearMethod · 0.45
pushMethod · 0.45
getBufferMethod · 0.45
getBufferEndMethod · 0.45

Tested by

no test coverage detected