Ensure at least length elements allocated, appending zero valued elements if needed.
| 184 | /// Ensure at least length elements allocated, |
| 185 | /// appending zero valued elements if needed. |
| 186 | void EnsureLength(int wantedLength) { |
| 187 | if (Length() < wantedLength) { |
| 188 | InsertValue(Length(), wantedLength - Length(), 0); |
| 189 | } |
| 190 | } |
| 191 | |
| 192 | /// Insert text into the buffer from an array. |
| 193 | void InsertFromArray(int positionToInsert, const T s[], int positionFrom, int insertLength) { |
no outgoing calls
no test coverage detected