----------------------------------------------------------------------------
| 1973 | |
| 1974 | //---------------------------------------------------------------------------- |
| 1975 | vtkClientServerStream::Commands vtkClientServerStream::GetCommand(int message) const |
| 1976 | { |
| 1977 | // The first value in a message is always the command. |
| 1978 | if (const unsigned char* data = this->GetValue(message, 0)) |
| 1979 | { |
| 1980 | // Retrieve the command value and convert it to the proper type. |
| 1981 | vtkTypeUInt32 cmd; |
| 1982 | memcpy(&cmd, data, sizeof(cmd)); |
| 1983 | if (cmd < vtkClientServerStream::EndOfCommands) |
| 1984 | { |
| 1985 | return static_cast<vtkClientServerStream::Commands>(cmd); |
| 1986 | } |
| 1987 | } |
| 1988 | return vtkClientServerStream::EndOfCommands; |
| 1989 | } |
| 1990 | |
| 1991 | //---------------------------------------------------------------------------- |
| 1992 | int vtkClientServerStream::GetNumberOfArguments(int message) const |
no test coverage detected