| 283 | } |
| 284 | |
| 285 | void ByteVector::trimRight(unsigned amt) |
| 286 | { |
| 287 | BVASSERT(!bitind()); |
| 288 | BVASSERT(amt <= size()); |
| 289 | //mEnd -= amt; |
| 290 | mSizeBits -= 8*amt; |
| 291 | } |
| 292 | |
| 293 | // For appending. |
| 294 | // Grow the vector by the specified amount of bytes and return the index of that location. |