MCPcopy Create free account
hub / github.com/creatale/node-dv / SkipDeSerialize

Method SkipDeSerialize

deps/tesseract/ccutil/strngs.cpp:185–190  ·  view source on GitHub ↗

As DeSerialize, but only seeks past the data - hence a static method.

Source from the content-addressed store, hash-verified

183
184// As DeSerialize, but only seeks past the data - hence a static method.
185bool STRING::SkipDeSerialize(bool swap, tesseract::TFile* fp) {
186 inT32 len;
187 if (fp->FRead(&len, sizeof(len), 1) != 1) return false;
188 if (swap) ReverseN(&len, sizeof(len));
189 return fp->FRead(NULL, 1, len) == len;
190}
191
192BOOL8 STRING::contains(const char c) const {
193 return (c != '\0') && (strchr (GetCStr(), c) != NULL);

Callers

nothing calls this directly

Calls 2

ReverseNFunction · 0.85
FReadMethod · 0.80

Tested by

no test coverage detected