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

Method create

src/common/classes/ClumpletReader.cpp:153–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153void ClumpletReader::create(const KindList* kl, FB_SIZE_T buffLen, FPTR_VOID raise)
154{
155 cur_offset = 0;
156
157 if (buffLen)
158 {
159 while (kl->kind != EndOfList)
160 {
161 kind = kl->kind;
162 if (getBufferTag() == kl->tag)
163 {
164 break;
165 }
166 ++kl;
167 }
168
169 if (kl->kind == EndOfList)
170 {
171 if (raise)
172 {
173 raise();
174 }
175 invalid_structure("Unknown tag value - missing in the list of possible");
176 }
177 }
178
179 rewind(); // this will set cur_offset and spbState
180}
181
182const UCHAR* ClumpletReader::getBuffer() const
183{

Callers

nothing calls this directly

Calls 2

raiseFunction · 0.85
rewindFunction · 0.85

Tested by

no test coverage detected