Does not change size().
| 330 | |
| 331 | // Does not change size(). |
| 332 | void ByteVector::fill(ByteType byte, size_t start, size_t span) { |
| 333 | ByteType *dp=mStart+start; |
| 334 | ByteType *end=dp+span; |
| 335 | BVASSERT(end<=mAllocEnd); |
| 336 | while (dp<end) { *dp++ = byte; } |
| 337 | } |
| 338 | |
| 339 | unsigned ByteVector::getUInt16(size_t readIndex) const { // 2 byte value |
| 340 | BVASSERT(readIndex <= size() - 2); |
no outgoing calls