AsArray | Returns the internal array of bytes the writer is using. This is NOT a copy. |
FinishMessage | This fills out the size header of a message begun with StartMessage(), so that it can be send using Send() functions. |
SeekZero | Seeks to the start of the internal buffer. |
StartMessage | This begins a new message, which should be completed with FinishMessage() once the payload has been written. |
ToArray | Returns a copy of internal array of bytes the writer is using, it copies only the bytes used. |
Write | This writes the a reference to a GameObject with a NetworkIdentity component to the stream. The object should have been spawned for clients to know about it. |
WriteBytesAndSize | This writes a 16-bit count and a array of bytes of that length to the stream. |
WriteBytesFull | This writes a 16-bit count and an array of bytes of that size to the stream. |
WritePackedUInt32 | This writes the 32-bit value to the stream using variable-length-encoding. |
WritePackedUInt64 | This writes the 64-bit value to the stream using variable-length-encoding. |