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

Method appendField

GPRS/ByteVector.cpp:471–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void ByteVector::appendField(uint64_t value,unsigned lengthBits)
472{
473 setField(growBits(lengthBits),value,lengthBits);
474 /*** old
475 int endpos = mBitInd + lengthBits; // 1 past the 0-based index of the last bit.
476 int nbytes = (endpos-1) / 8; // number of new bytes needed.
477 if (mBitInd == 0) nbytes++; // if at 0, the next byte has not been alloced yet.
478 setField2(grow(nbytes),mBitInd,value,lengthBits);
479 mBitInd = endpos % 8;
480 ***/
481}
482
483// Read a bit field starting at specified byte and bit, each numbered from 0.
484// Bit numbering is from high to low, like this:

Callers 8

ByteVectorTestFunction · 0.45
gWriteMethod · 0.45
decodeIMMethod · 0.45
gmmWriteBodyMethod · 0.45
appendTiPdMethod · 0.45
smWriteBodyMethod · 0.45
sgsnCliFindFunction · 0.45
sndcpWriteSegmentMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected