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

Method appendLI

GPRS/ByteVector.cpp:250–259  ·  view source on GitHub ↗

This is a two byte length indicator as per GSM 08.16 10.1.2

Source from the content-addressed store, hash-verified

248
249// This is a two byte length indicator as per GSM 08.16 10.1.2
250void ByteVector::appendLI(unsigned len)
251{
252 if (len < 255) {
253 appendByte(len | 0x80);
254 } else {
255 BVASSERT(len <= 32767);
256 appendByte(0x7f&(len>>8));
257 appendByte(0xff&(len>>8));
258 }
259}
260
261// The inverse of trimRight. Like an append but the new area is uninitialized.
262void ByteVector::growRight(unsigned amt)

Callers 9

NsAddCauseFunction · 0.80
NsAddBVCIFunction · 0.80
NsAddVCIFunction · 0.80
NsAddNSEIFunction · 0.80
BVCAddBVCIFunction · 0.80
BVCAddCauseFunction · 0.80
BVCAddTagFunction · 0.80
BVCAddCellIdentifierFunction · 0.80
BVCFactoryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected