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

Method SkipDeSerialize

deps/tesseract/ccutil/genericvector.h:959–964  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

957}
958template <typename T>
959bool GenericVector<T>::SkipDeSerialize(bool swap, tesseract::TFile* fp) {
960 inT32 reserved;
961 if (fp->FRead(&reserved, sizeof(reserved), 1) != 1) return false;
962 if (swap) Reverse32(&reserved);
963 return fp->FRead(NULL, sizeof(T), reserved) == reserved;
964}
965
966// Writes a vector of classes to the given file. Assumes the existence of
967// bool T::Serialize(FILE* fp) const that returns false in case of error.

Callers

nothing calls this directly

Calls 2

Reverse32Function · 0.85
FReadMethod · 0.80

Tested by

no test coverage detected