MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / setField

Method setField

GPRS/ByteVector.h:335–337  ·  view source on GitHub ↗

Set/get bit field giving bit position treating the entire ByteVector as a string of bits.

Source from the content-addressed store, hash-verified

333
334 // Set/get bit field giving bit position treating the entire ByteVector as a string of bits.
335 void setField(size_t bitPos, uint64_t value, unsigned lengthBits) {
336 setField2(bitPos/8,bitPos%8,value,lengthBits);
337 }
338 uint64_t getField(size_t bitPos, unsigned lengthBits) const { // aka peekField
339 return getField2(bitPos/8,bitPos%8,lengthBits);
340 }

Callers 2

ByteVectorTestFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected