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

Method DeSerializeSize

deps/tesseract/ccutil/genericvector.h:579–583  ·  view source on GitHub ↗

Enables deserialization of a selection of elements. Note that in order to retain the integrity of the stream, the caller must call some combination of DeSerializeElement and DeSerializeSkip of the exact number returned in size, assuming a true return.

Source from the content-addressed store, hash-verified

577 // of DeSerializeElement and DeSerializeSkip of the exact number returned in
578 // *size, assuming a true return.
579 static bool DeSerializeSize(bool swap, TFile* fp, inT32* size) {
580 if (fp->FRead(size, sizeof(*size), 1) != 1) return false;
581 if (swap) Reverse32(size);
582 return true;
583 }
584 // Reads and appends to the vector the next element of the serialization.
585 bool DeSerializeElement(bool swap, TFile* fp) {
586 inT8 non_null;

Callers

nothing calls this directly

Calls 2

Reverse32Function · 0.85
FReadMethod · 0.80

Tested by

no test coverage detected