Method | Description | |
---|---|---|
AsArray ( ) : byte[] |
Returns the internal array of bytes the writer is using. This is NOT a copy.
|
|
FinishMessage ( ) : void |
This fills out the size header of a message begun with StartMessage(), so that it can be send using Send() functions.
|
|
NetworkWriter ( ) : System |
Creates a new NetworkWriter object.
|
|
NetworkWriter ( byte buffer ) : System |
Creates a new NetworkWriter object.
|
|
SeekZero ( ) : void |
Seeks to the start of the internal buffer.
|
|
StartMessage ( short msgType ) : void |
This begins a new message, which should be completed with FinishMessage() once the payload has been written.
|
|
ToArray ( ) : byte[] |
Returns a copy of internal array of bytes the writer is using, it copies only the bytes used.
|
|
Write ( Color value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( Vector2 value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( Vector3 value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( Vector4 value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( bool value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( byte value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( byte buffer, int count ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( byte buffer, int offset, int count ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( char value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( decimal value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( double value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( float value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( int value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( long value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( sbyte value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( short value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( string value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( uint value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( ulong value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
Write ( ushort value ) : void |
This writes a reference to an object, value, buffer or network message, together with a NetworkIdentity component to the stream.
|
|
WriteBytesAndSize ( byte buffer, int count ) : void |
This writes a 16-bit count and a array of bytes of that length to the stream.
|
|
WriteBytesFull ( byte buffer ) : void |
This writes a 16-bit count and an array of bytes of that size to the stream.
|
|
WritePackedUInt32 ( uint value ) : void |
This writes the 32-bit value to the stream using variable-length-encoding.
|
|
WritePackedUInt64 ( ulong value ) : void |
This writes the 64-bit value to the stream using variable-length-encoding.
|
Method | Description | |
---|---|---|
AsArraySegment ( ) : ArraySegment |
public NetworkWriter ( byte buffer ) : System | ||
buffer | byte | A buffer to write into. This is not copied. |
return | System |
public StartMessage ( short msgType ) : void | ||
msgType | short | Message type. |
return | void |
public Write ( Color value ) : void | ||
value | Color | The object to write. |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
msg | The network message to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( |
||
value | The object to write. | |
return | void |
public Write ( Vector2 value ) : void | ||
value | Vector2 | The object to write. |
return | void |
public Write ( Vector3 value ) : void | ||
value | Vector3 | The object to write. |
return | void |
public Write ( Vector4 value ) : void | ||
value | Vector4 | The object to write. |
return | void |
public Write ( bool value ) : void | ||
value | bool | The object to write. |
return | void |
public Write ( byte value ) : void | ||
value | byte | The object to write. |
return | void |
public Write ( byte buffer, int count ) : void | ||
buffer | byte | The byte buffer to write. |
count | int | The number of bytes in the byte buffer to write. |
return | void |
public Write ( byte buffer, int offset, int count ) : void | ||
buffer | byte | The byte buffer to write. |
offset | int | The byte buffer array element to start writing from. |
count | int | The number of bytes in the byte buffer to write. |
return | void |
public Write ( char value ) : void | ||
value | char | The object to write. |
return | void |
public Write ( decimal value ) : void | ||
value | decimal | The object to write. |
return | void |
public Write ( double value ) : void | ||
value | double | The object to write. |
return | void |
public Write ( float value ) : void | ||
value | float | The object to write. |
return | void |
public Write ( long value ) : void | ||
value | long | The object to write. |
return | void |
public Write ( sbyte value ) : void | ||
value | sbyte | The object to write. |
return | void |
public Write ( short value ) : void | ||
value | short | The object to write. |
return | void |
public Write ( string value ) : void | ||
value | string | The object to write. |
return | void |
public Write ( uint value ) : void | ||
value | uint | The object to write. |
return | void |
public Write ( ulong value ) : void | ||
value | ulong | The object to write. |
return | void |
public Write ( ushort value ) : void | ||
value | ushort | The object to write. |
return | void |
public WriteBytesAndSize ( byte buffer, int count ) : void | ||
buffer | byte | Array of bytes to write. |
count | int | Number of bytes from the array to write. |
return | void |
public WriteBytesFull ( byte buffer ) : void | ||
buffer | byte | Bytes to write. |
return | void |
public WritePackedUInt32 ( uint value ) : void | ||
value | uint | Value to write. |
return | void |
public WritePackedUInt64 ( ulong value ) : void | ||
value | ulong | Value to write. |
return | void |