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

Method setUInt16

GPRS/ByteVector.cpp:321–324  ·  view source on GitHub ↗

GSM04.60 10.0b.3.1: Note that fields in RLC blocks use network order, meaning most significant byte first (cause they started on Sun workstations.) It is faster to use htons, etc, than unpacking these ourselves.

Source from the content-addressed store, hash-verified

319// meaning most significant byte first (cause they started on Sun workstations.)
320// It is faster to use htons, etc, than unpacking these ourselves.
321void ByteVector::setUInt16(size_t writeIndex,unsigned value) { // 2 byte value
322 BVASSERT(writeIndex <= size() - 2);
323 sethtons(&mStart[writeIndex],value);
324}
325
326void ByteVector::setUInt32(size_t writeIndex, unsigned value) { // 4 byte value
327 BVASSERT(writeIndex <= size() - 4);

Callers

nothing calls this directly

Calls 1

sethtonsFunction · 0.85

Tested by

no test coverage detected