| 351 | } |
| 352 | |
| 353 | unsigned 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 | } |
| 361 | unsigned ByteVector::readUInt32(size_t &rp) { |
| 362 | unsigned result = getUInt32(rp); |
| 363 | rp+=4; |
no outgoing calls
no test coverage detected