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

Method fromBlocks

source/MRMesh/MRBitSet.h:85–91  ·  view source on GitHub ↗

creates bitset from the given blocks of bits

Source from the content-addressed store, hash-verified

83
84 /// creates bitset from the given blocks of bits
85 static BitSet fromBlocks( std::vector<block_type> && blocks )
86 {
87 BitSet res;
88 res.blocks_ = std::move( blocks );
89 res.numBits_ = res.blocks_.size() * bits_per_block;
90 return res;
91 }
92
93 void reserve( size_type numBits ) { blocks_.reserve( calcNumBlocks_( numBits ) ); }
94 MRMESH_API void resize( size_type numBits, bool fillValue = false );

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected