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

Method prepareForNewValue

src/common/StatusHolder.h:57–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56private:
57 char* prepareForNewValue()
58 {
59 // Do not delete old strings buffer because strings from it
60 // may be used in status vector passed to current save() call.
61 // I.e. strings should be first saved in new dynamic buffer and only afterwards
62 // old buffer may be released.
63 char* oldBuffer = findDynamicStrings(this->getCount(), this->begin());
64 this->resize(0);
65 return oldBuffer;
66 }
67
68public:
69 void clear()

Callers 2

clearMethod · 0.95
saveMethod · 0.95

Calls 4

findDynamicStringsFunction · 0.85
getCountMethod · 0.45
beginMethod · 0.45
resizeMethod · 0.45

Tested by

no test coverage detected