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

Method GetData

Remoting/ClientServerStream/vtkClientServerStream.cxx:1488–1517  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1486
1487//----------------------------------------------------------------------------
1488int vtkClientServerStream::GetData(const unsigned char** data, size_t* length) const
1489{
1490 // Do not return data unless stream is valid.
1491 if (!this->Internal->Invalid)
1492 {
1493 if (data)
1494 {
1495 *data = &*this->Internal->Data.begin();
1496 }
1497
1498 if (length)
1499 {
1500 *length = this->Internal->Data.size();
1501 }
1502 return 1;
1503 }
1504 else
1505 {
1506 if (data)
1507 {
1508 *data = nullptr;
1509 }
1510
1511 if (length)
1512 {
1513 *length = 0;
1514 }
1515 return 0;
1516 }
1517}
1518
1519//----------------------------------------------------------------------------
1520int vtkClientServerStream::SetData(const unsigned char* data, size_t length)

Callers 15

RequestDataMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
RequestDataMethod · 0.45
UpdateViewLayoutMethod · 0.45
OnLeftButtonDownMethod · 0.45
OnLeftButtonUpMethod · 0.45

Calls 2

beginMethod · 0.45
sizeMethod · 0.45

Tested by 3

RequestDataMethod · 0.36
GetResultMessageDataMethod · 0.36
RunTestsMethod · 0.36