Метод | Описание | |
---|---|---|
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.
|
Метод | Описание | |
---|---|---|
AsArraySegment ( ) : ArraySegment |
public NetworkWriter ( byte buffer ) : System | ||
buffer | byte | A buffer to write into. This is not copied. |
Результат | System |
public StartMessage ( short msgType ) : void | ||
msgType | short | Message type. |
Результат | void |
public Write ( Color value ) : void | ||
value | Color | The object to write. |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
msg | The network message to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( |
||
value | The object to write. | |
Результат | void |
public Write ( Vector2 value ) : void | ||
value | Vector2 | The object to write. |
Результат | void |
public Write ( Vector3 value ) : void | ||
value | Vector3 | The object to write. |
Результат | void |
public Write ( Vector4 value ) : void | ||
value | Vector4 | The object to write. |
Результат | void |
public Write ( bool value ) : void | ||
value | bool | The object to write. |
Результат | void |
public Write ( byte value ) : void | ||
value | byte | The object to write. |
Результат | 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. |
Результат | 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. |
Результат | void |
public Write ( char value ) : void | ||
value | char | The object to write. |
Результат | void |
public Write ( decimal value ) : void | ||
value | decimal | The object to write. |
Результат | void |
public Write ( double value ) : void | ||
value | double | The object to write. |
Результат | void |
public Write ( float value ) : void | ||
value | float | The object to write. |
Результат | void |
public Write ( int value ) : void | ||
value | int | The object to write. |
Результат | void |
public Write ( long value ) : void | ||
value | long | The object to write. |
Результат | void |
public Write ( sbyte value ) : void | ||
value | sbyte | The object to write. |
Результат | void |
public Write ( short value ) : void | ||
value | short | The object to write. |
Результат | void |
public Write ( string value ) : void | ||
value | string | The object to write. |
Результат | void |
public Write ( uint value ) : void | ||
value | uint | The object to write. |
Результат | void |
public Write ( ulong value ) : void | ||
value | ulong | The object to write. |
Результат | void |
public Write ( ushort value ) : void | ||
value | ushort | The object to write. |
Результат | 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. |
Результат | void |
public WriteBytesFull ( byte buffer ) : void | ||
buffer | byte | Bytes to write. |
Результат | void |
public WritePackedUInt32 ( uint value ) : void | ||
value | uint | Value to write. |
Результат | void |
public WritePackedUInt64 ( ulong value ) : void | ||
value | ulong | Value to write. |
Результат | void |