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

Method SaveToBuffer

deps/tesseract/ccstruct/imagedata.cpp:418–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

416 return true;
417}
418bool DocumentData::SaveToBuffer(GenericVector<char>* buffer) {
419 SVAutoLock lock(&pages_mutex_);
420 TFile fp;
421 fp.OpenWrite(buffer);
422 return pages_.Serialize(&fp);
423}
424
425// Adds the given page data to this document, counting up memory.
426void DocumentData::AddPageToDocument(ImageData* page) {

Callers

nothing calls this directly

Calls 2

OpenWriteMethod · 0.80
SerializeMethod · 0.45

Tested by

no test coverage detected