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

Method skipTLV

GSM/GSML3Message.cpp:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98
99
100size_t GSM::skipTLV(unsigned IEI, const L3Frame& source, size_t& rp)
101{
102 if (rp==source.size()) return 0;
103 size_t base = rp;
104 unsigned thisIEI = source.peekField(rp,8);
105 if (thisIEI != IEI) return 0;
106 rp += 8;
107 size_t length = 8 * source.readField(rp,8);
108 rp += length;
109 return rp-base;
110}
111
112
113size_t GSM::skipTV(unsigned IEI, size_t numBits, const L3Frame& source, size_t& rp)

Callers

nothing calls this directly

Calls 2

readFieldMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected