|
| NetDataWriter (bool autoResize) |
|
| NetDataWriter (bool autoResize, int initialSize) |
|
void | ResizeIfNeed (int newSize) |
|
void | Reset (int size) |
|
void | Reset () |
|
byte[] | CopyData () |
|
int | SetPosition (int position) |
| Sets position of NetDataWriter to rewrite previous values.
|
|
void | Put (float value) |
|
void | Put (double value) |
|
void | Put (long value) |
|
void | Put (ulong value) |
|
void | Put (int value) |
|
void | Put (uint value) |
|
void | Put (char value) |
|
void | Put (ushort value) |
|
void | Put (short value) |
|
void | Put (sbyte value) |
|
void | Put (byte value) |
|
void | Put (byte[] data, int offset, int length) |
|
void | Put (byte[] data) |
|
void | PutSBytesWithLength (sbyte[] data, int offset, int length) |
|
void | PutSBytesWithLength (sbyte[] data) |
|
void | PutBytesWithLength (byte[] data, int offset, int length) |
|
void | PutBytesWithLength (byte[] data) |
|
void | Put (bool value) |
|
void | PutArray (float[] value) |
|
void | PutArray (double[] value) |
|
void | PutArray (long[] value) |
|
void | PutArray (ulong[] value) |
|
void | PutArray (int[] value) |
|
void | PutArray (uint[] value) |
|
void | PutArray (ushort[] value) |
|
void | PutArray (short[] value) |
|
void | PutArray (bool[] value) |
|
void | PutArray (string[] value) |
|
void | PutArray (string[] value, int maxLength) |
|
void | Put (IPEndPoint endPoint) |
|
void | Put (string value) |
|
void | Put (string value, int maxLength) |
|
void | Put< T > (T obj) |
|
|
static NetDataWriter | FromBytes (byte[] bytes, bool copy) |
| Creates NetDataWriter from existing ByteArray.
|
|
static NetDataWriter | FromBytes (byte[] bytes, int offset, int length) |
| Creates NetDataWriter from existing ByteArray (always copied data)
|
|
static NetDataWriter | FromString (string value) |
|
|
byte[] | _data |
|
int | _position |
|
|
int | Capacity [get] |
|
byte[] | Data [get] |
|
int | Length [get] |
|
◆ FromBytes() [1/2]
static NetDataWriter LiteNetLib.Utils.NetDataWriter.FromBytes |
( |
byte[] |
bytes, |
|
|
bool |
copy |
|
) |
| |
|
inlinestatic |
Creates NetDataWriter from existing ByteArray.
- Parameters
-
bytes | Source byte array |
copy | Copy array to new location or use existing |
◆ FromBytes() [2/2]
static NetDataWriter LiteNetLib.Utils.NetDataWriter.FromBytes |
( |
byte[] |
bytes, |
|
|
int |
offset, |
|
|
int |
length |
|
) |
| |
|
inlinestatic |
Creates NetDataWriter from existing ByteArray (always copied data)
- Parameters
-
bytes | Source byte array |
offset | Offset of array |
length | Length of array |
◆ Put< T >()
void LiteNetLib.Utils.NetDataWriter.Put< T > |
( |
T |
obj | ) |
|
|
inline |
◆ SetPosition()
int LiteNetLib.Utils.NetDataWriter.SetPosition |
( |
int |
position | ) |
|
|
inline |
Sets position of NetDataWriter to rewrite previous values.
- Parameters
-
position | new byte position |
- Returns
- previous position of data writer
The documentation for this class was generated from the following file:
- C:/Transhuman/S2/Assets/Plugins/Teal-Net/Plugins/LiteNetLib/Utils/NetDataWriter.cs