MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / updateHeadCounter

Method updateHeadCounter

source/MRMesh/MRMeshSave.cpp:327–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325}
326
327bool BinaryStlSaver::updateHeadCounter()
328{
329 if ( savedNumTris_ != headNumTris_ )
330 {
331 const auto curr = out_.tellp();
332 out_.seekp( numTrisPos_ );
333 out_.write( ( const char* )&savedNumTris_, 4 );
334 headNumTris_ = savedNumTris_;
335 out_.seekp( curr );
336 }
337 return (bool)out_;
338}
339
340BinaryStlSaver::~BinaryStlSaver()
341{

Callers 1

toBinaryStlFunction · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected