| 179 | //------------------------------------------------------------------------------ |
| 180 | template <typename T> |
| 181 | void vtkMultiProcessStream::PushArray(T array[], unsigned int size) |
| 182 | { |
| 183 | assert("pre: array is nullptr!" && (array != nullptr)); |
| 184 | this->Internals->Data.push_back(vtkTypeTraits<T>::VTKTypeID()); |
| 185 | this->Internals->Push(reinterpret_cast<unsigned char*>(&size), sizeof(unsigned int)); |
| 186 | this->Internals->Push(reinterpret_cast<unsigned char*>(array), sizeof(T) * size); |
| 187 | } |
| 188 | |
| 189 | //------------------------------------------------------------------------------ |
| 190 | void vtkMultiProcessStream::Push(char array[], unsigned int size) |