| 95 | } |
| 96 | |
| 97 | void Bytes::checkWritable() |
| 98 | { |
| 99 | if (_data.use_count() != 1) |
| 100 | { |
| 101 | auto newData = createVector(size()); |
| 102 | std::uninitialized_copy(cbegin(), cend(), newData->begin()); |
| 103 | _data = newData; |
| 104 | _low = 0; |
| 105 | _high = newData->size(); |
| 106 | } |
| 107 | } |
| 108 | |
| 109 | void Bytes::adjustBounds(unsigned pos) |
| 110 | { |
nothing calls this directly
no test coverage detected