| 337 | } |
| 338 | |
| 339 | unsigned ByteVector::getUInt16(size_t readIndex) const { // 2 byte value |
| 340 | BVASSERT(readIndex <= size() - 2); |
| 341 | uint16_t tmp; |
| 342 | ByteType *tp = (ByteType*)&tmp; |
| 343 | ByteType *cp = &mStart[readIndex]; |
| 344 | tp[0]=cp[0]; tp[1]=cp[1]; |
| 345 | return ntohs(tmp); |
| 346 | } |
| 347 | unsigned ByteVector::readUInt16(size_t &rp) { |
| 348 | unsigned result = getUInt16(rp); |
| 349 | rp+=2; |
no outgoing calls
no test coverage detected