MCPcopy Create free account
hub / github.com/Kitware/ParaView / GetValue

Method GetValue

Remoting/ClientServerStream/vtkClientServerStream.cxx:1872–1888  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1870
1871//----------------------------------------------------------------------------
1872const unsigned char* vtkClientServerStream::GetValue(int message, int value) const
1873{
1874 if (value >= 0 && value < this->GetNumberOfValues(message))
1875 {
1876 // Get the index to the beginning of the requested message.
1877 vtkClientServerStreamInternals::ValueOffsetsType::size_type index =
1878 this->Internal->MessageIndexes[message];
1879
1880 // Return a pointer to the value-th value in the message.
1881 const unsigned char* data = &*this->Internal->Data.begin();
1882 return data + this->Internal->ValueOffsets[index + value];
1883 }
1884 else
1885 {
1886 return nullptr;
1887 }
1888}
1889
1890//----------------------------------------------------------------------------
1891namespace

Callers 8

GetArgumentMethod · 0.95
GetArgumentLengthMethod · 0.95
GetCommandMethod · 0.95
GetArgumentTypeMethod · 0.95
GetValueMethod · 0.45
do_checkFunction · 0.45
CopyFromArrayInternalMethod · 0.45

Calls 2

GetNumberOfValuesMethod · 0.95
beginMethod · 0.45

Tested by

no test coverage detected