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

Method ParseValue

Remoting/ClientServerStream/vtkClientServerStream.cxx:1708–1721  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1706
1707//----------------------------------------------------------------------------
1708unsigned char* vtkClientServerStream::ParseValue(
1709 int order, unsigned char* data, unsigned char* end, unsigned int wordSize)
1710{
1711 // Byte-swap the value.
1712 if (data > end - wordSize)
1713 {
1714 /* ERROR */
1715 return nullptr;
1716 }
1717 this->PerformByteSwap(order, data, 1, wordSize);
1718
1719 // Return the position after the value.
1720 return data + wordSize;
1721}
1722
1723//----------------------------------------------------------------------------
1724unsigned char* vtkClientServerStream::ParseArray(

Callers 1

ParseDataMethod · 0.95

Calls 1

PerformByteSwapMethod · 0.95

Tested by

no test coverage detected