Reads and returns data of type from the message.
()
| 436 | /// Reads and returns data of type <see cref="Boolean"/> from the message. |
| 437 | /// </summary> |
| 438 | public bool ReadBoolean() |
| 439 | { |
| 440 | bool value = default; |
| 441 | ReadBytes((byte*)&value, sizeof(bool)); |
| 442 | return value; |
| 443 | } |
| 444 | |
| 445 | /// <summary> |
| 446 | /// Writes the <see cref="INetworkSerializable"/> object data to the stream. Object has to be allocated. |