MCPcopy Create free account
hub / github.com/DFHack/dfhack / is_set

Method is_set

library/include/BitArray.h:156–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154 }
155
156 bool is_set (T index) const
157 {
158 size_type byte = index / 8;
159 if(byte < _size)
160 {
161 uint8_t bit = 1 << (index % 8);
162 return bit & _bits[byte];
163 }
164 else return false;
165 }
166
167 /// WARNING: this can truncate long bit arrays
168 template <typename I = uint32_t>

Callers 15

InitSimulationThreadMethod · 0.80
matchesMethod · 0.80
getDescriptionMethod · 0.80
inGraphicsModeMethod · 0.80
FOR_ENUM_ITEMSFunction · 0.80
isAnyClothMethod · 0.80
matchesMethod · 0.80
isSoilInorganicMethod · 0.80
isStoneInorganicMethod · 0.80
getBiomeTypeWithRefMethod · 0.80
getBaseDirMethod · 0.80
getGroundTypeMethod · 0.80

Calls

no outgoing calls

Tested by 1

estimate_undergroundFunction · 0.64