[]
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
Public Sub Write(Of T As Structure)(value As T)
| 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)
Public Sub Write(value As Single)
| 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)
Public Sub Write(value As Integer)
| 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)
Public Sub Write(value As Short)
| 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)
Public Sub Write(value As Boolean)
| 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)
Public Sub Write(value As Vector2)
| 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)
Public Sub Write(value As Vector3)
| 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)
Public Sub Write(value As Vector4)
| 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)
Public Sub Write(value As ColorF)
| 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)
Public Sub Write(value As Matrix4x4)
| 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)
Public Overrides Sub Write(buffer As Byte(), offset As Integer, count As Integer)
| 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)
Public Sub Write(buffer As IntPtr, offset As Integer, count As Integer)
| 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. |