| 146 | |
| 147 | |
| 148 | template <class T> void Array<T>::Reset() |
| 149 | { |
| 150 | if (Buffer!=NULL) |
| 151 | { |
| 152 | free(Buffer); |
| 153 | Buffer=NULL; |
| 154 | } |
| 155 | BufSize=0; |
| 156 | AllocSize=0; |
| 157 | } |
| 158 | |
| 159 | |
| 160 | // Reset buffer size, but preserve already allocated memory if any, |
no outgoing calls
no test coverage detected