----------------------------------------------------------------------------
| 1870 | |
| 1871 | //---------------------------------------------------------------------------- |
| 1872 | const 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 | //---------------------------------------------------------------------------- |
| 1891 | namespace |
no test coverage detected