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

Method AddPageToDocument

deps/tesseract/ccstruct/imagedata.cpp:426–430  ·  view source on GitHub ↗

Adds the given page data to this document, counting up memory.

Source from the content-addressed store, hash-verified

424
425// Adds the given page data to this document, counting up memory.
426void DocumentData::AddPageToDocument(ImageData* page) {
427 SVAutoLock lock(&pages_mutex_);
428 pages_.push_back(page);
429 set_memory_used(memory_used() + page->MemoryUsed());
430}
431
432// If the given index is not currently loaded, loads it using a separate
433// thread.

Callers

nothing calls this directly

Calls 2

MemoryUsedMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected