| 115 | //------------------------------------------------------------------------------ |
| 116 | template <typename ScalarT> |
| 117 | void vtkBuffer<ScalarT>::SetBuffer(typename vtkBuffer<ScalarT>::ScalarType* array, vtkIdType sz) |
| 118 | { |
| 119 | if (this->Pointer != array) |
| 120 | { |
| 121 | if (this->DeleteFunction) |
| 122 | { |
| 123 | this->DeleteFunction(this->Pointer); |
| 124 | } |
| 125 | this->Pointer = array; |
| 126 | } |
| 127 | this->Size = sz; |
| 128 | } |
| 129 | //------------------------------------------------------------------------------ |
| 130 | template <typename ScalarT> |
| 131 | void vtkBuffer<ScalarT>::SetMallocFunction(vtkMallocingFunction mallocFunction) |
no outgoing calls
no test coverage detected