[]
Writes a single value to the stream, and advances the current position within this stream by the number of bytes written.
public void Write<T>(T value) where T : struct
| Type | Name | Description |
|---|---|---|
| T | value | The value to write to the stream. |
| Name | Description |
|---|---|
| T | The type of the value to be written to the stream. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
| Type | Condition |
|---|---|
| NotSupportedException | The stream does not support writing. |
Writes the specified value.
public void Write(float value)
| Type | Name | Description |
|---|---|---|
| float | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(int value)
| Type | Name | Description |
|---|---|---|
| int | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(short value)
| Type | Name | Description |
|---|---|---|
| short | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(bool value)
| Type | Name | Description |
|---|---|---|
| bool | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(Vector2 value)
| Type | Name | Description |
|---|---|---|
| Vector2 | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(Vector3 value)
| Type | Name | Description |
|---|---|---|
| Vector3 | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(Vector4 value)
| Type | Name | Description |
|---|---|---|
| Vector4 | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(ColorF value)
| Type | Name | Description |
|---|---|---|
| ColorF | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes the specified value.
public void Write(Matrix4x4 value)
| Type | Name | Description |
|---|---|---|
| Matrix4x4 | value | The value. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
Writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public override void Write(byte[] buffer, int offset, int count)
| Type | Name | Description |
|---|---|---|
| byte[] | buffer | An array of bytes. This method copies count bytes from buffer to the current stream. |
| int | offset | The zero-based byte offset in buffer at which to begin copying bytes to the current stream. |
| int | count | The number of bytes to be written to the current stream. |
In order to provide faster read/write, this operation doesn't check stream bound. A client must carefully not read/write above the size of this datastream.
| Type | Condition |
|---|---|
| NotSupportedException | This stream does not support writing. |
When overridden in a derived class, writes a sequence of bytes to the current stream and advances the current position within this stream by the number of bytes written.
public void Write(IntPtr buffer, int offset, int count)
| Type | Name | Description |
|---|---|---|
| IntPtr | buffer | An array of bytes. This method copies |
| int | offset | The zero-based byte offset in |
| int | count | The number of bytes to be written to the current stream. |