MCPcopy Create free account
hub / github.com/Kitware/VTK / ExportToVoidPointer

Method ExportToVoidPointer

Common/Core/vtkAbstractArray.cxx:309–316  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

307
308//------------------------------------------------------------------------------
309void vtkAbstractArray::ExportToVoidPointer(void* dest)
310{
311 if (this->MaxId > 0 && this->GetDataTypeSize() > 0)
312 {
313 void* src = this->GetVoidPointer(0);
314 memcpy(dest, src, ((this->MaxId + 1) * this->GetDataTypeSize()));
315 }
316}
317
318//------------------------------------------------------------------------------
319int vtkAbstractArray::CopyInformation(vtkInformation* infoFrom, vtkTypeBool deep)

Callers 1

GetArrayRawPointerFunction · 0.80

Calls 2

GetDataTypeSizeMethod · 0.95
GetVoidPointerMethod · 0.45

Tested by

no test coverage detected