Method Write
Write(Buffer, byte)
Writes a single byte (8-bit value) to the buffer.
Declaration
public static void Write(this Buffer buffer, byte value)
Parameters
Write(Buffer, byte[])
Writes an array of bytes to the buffer.
Declaration
public static void Write(this Buffer buffer, byte[] bytes)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
byte[] | bytes | The array of bytes that should be written to the buffer. |
Write(Buffer, byte[], int, int)
Writes an array of bytes to the buffer.
Declaration
public static void Write(this Buffer buffer, byte[] bytes, int offset, int length)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
byte[] | bytes | The array of bytes that should be written to the buffer. |
int | offset | Read offset in bytes where the bytes should be read from. |
int | length | The number of bytes to be read from the input buffer. |
Write(Buffer, short)
Writes a short (16-bit value) to the buffer.
Declaration
public static void Write(this Buffer buffer, short value)
Parameters
Write(Buffer, int)
Writes an integer (32-bit value) to the buffer.
Declaration
public static void Write(this Buffer buffer, int value)
Parameters
Write(Buffer, float)
Writes a floating point value to the buffer.
Declaration
public static void Write(this Buffer buffer, float value)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
float | value | The floating point value that should be written to the buffer. |
Write(Buffer, bool)
Writes a boolean to the buffer.
Declaration
public static void Write(this Buffer buffer, bool value)
Parameters
Write(Buffer, string)
Writes a string to the buffer.
Declaration
public static void Write(this Buffer buffer, string value)
Parameters
Write(Buffer, Buffer)
Writes a buffer passed as argument to the buffer.
Declaration
public static void Write(this Buffer buffer, Buffer other)
Parameters
Write(Buffer, Vector2)
Writes a vector2 to the buffer.
Declaration
public static void Write(this Buffer buffer, Vector2 value)
Parameters
Write(Buffer, Vector3)
Writes a vector3 to the buffer.
Declaration
public static void Write(this Buffer buffer, Vector3 value)
Parameters
Write(Buffer, Vector4)
Writes a vector4 to the buffer.
Declaration
public static void Write(this Buffer buffer, Vector4 value)
Parameters
Write(Buffer, Quaternion)
Writes a quaternion to the buffer.
Declaration
public static void Write(this Buffer buffer, Quaternion value)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
Quaternion | value | The quaternion that should be written to the buffer. |
Write(Buffer, Color)
Writes a color value to the buffer.
Declaration
public static void Write(this Buffer buffer, Color value)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
Color | value | The color value that should be written to the buffer. |
Write(Buffer, Color32)
Writes a color32 value to the buffer.
Declaration
public static void Write(this Buffer buffer, Color32 value)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
Color32 | value | The color32 value that should be written to the buffer. |
Write(Buffer, NativeString64)
Declaration
public static void Write(this Buffer buffer, NativeString64 value)
Parameters
Type | Name | Description |
---|---|---|
Buffer | buffer | |
Native |
value |