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

Method getUInt32

GPRS/ByteVector.cpp:353–360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353unsigned ByteVector::getUInt32(size_t readIndex) const { // 4 byte value
354 BVASSERT(readIndex <= size() - 4);
355 uint32_t tmp;
356 ByteType *tp = (unsigned char*)&tmp;
357 ByteType *cp = &mStart[readIndex];
358 tp[0]=cp[0]; tp[1]=cp[1]; tp[2]=cp[2]; tp[3]=cp[3];
359 return ntohl(tmp);
360}
361unsigned ByteVector::readUInt32(size_t &rp) {
362 unsigned result = getUInt32(rp);
363 rp+=4;

Callers 2

parseDLUnitDataBodyMethod · 0.80
parseLVMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected