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

Method SetRawData

Parallel/Core/vtkMultiProcessStream.cxx:937–953  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

935
936//------------------------------------------------------------------------------
937void vtkMultiProcessStream::SetRawData(const std::vector<unsigned char>& data)
938{
939 this->Internals->Data.clear();
940 unsigned char endianness = data.front();
941 std::vector<unsigned char>::const_iterator iter = data.begin();
942 ++iter;
943 this->Internals->Data.resize(data.size() - 1);
944 int cc = 0;
945 for (; iter != data.end(); ++iter, ++cc)
946 {
947 this->Internals->Data[cc] = *iter;
948 }
949 if (this->Endianness != endianness)
950 {
951 this->Internals->SwapBytes();
952 }
953}
954
955//------------------------------------------------------------------------------
956void vtkMultiProcessStream::GetRawData(unsigned char*& data, unsigned int& size)

Callers 8

RenderRMIFunction · 0.80
GatherMethod · 0.80
AllGatherMethod · 0.80
BroadcastMethod · 0.80
ReceiveMethod · 0.80
DeserializeGhostDataMethod · 0.80
UnPackDataMethod · 0.80
ReduceToAllMethod · 0.80

Calls 6

clearMethod · 0.45
frontMethod · 0.45
beginMethod · 0.45
resizeMethod · 0.45
sizeMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected