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

Method FWrite

deps/tesseract/ccutil/serialis.cpp:131–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

129}
130
131int TFile::FWrite(const void* buffer, int size, int count) {
132 ASSERT_HOST(is_writing_);
133 int total = size * count;
134 if (total <= 0) return 0;
135 const char* buf = reinterpret_cast<const char*>(buffer);
136 // This isn't very efficient, but memory is so fast compared to disk
137 // that it is relatively unimportant, and very simple.
138 for (int i = 0; i < total; ++i)
139 data_->push_back(buf[i]);
140 return count;
141}
142
143
144} // namespace tesseract.

Callers 8

SerializeMethod · 0.80
SerializeSizeMethod · 0.80
SerializeMethod · 0.80
save_to_fileMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
SerializeMethod · 0.80
SerializeClassesMethod · 0.80

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected