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

Method SetBit

deps/tesseract/ccutil/bitvector.h:73–75  ·  view source on GitHub ↗

Accessors to set/reset/get bits. The range of index is [0, size()-1]. There is debug-only bounds checking.

Source from the content-addressed store, hash-verified

71 // The range of index is [0, size()-1].
72 // There is debug-only bounds checking.
73 void SetBit(int index) {
74 array_[WordIndex(index)] |= BitMask(index);
75 }
76 void ResetBit(int index) {
77 array_[WordIndex(index)] &= ~BitMask(index);
78 }

Callers 2

BuildFromShapeMethod · 0.80
ComputeCloudFeaturesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected