[]
Writes an array of values to the current stream, and advances the current position within this stream by the number of bytes written.
public void WriteRange<T>(T[] data) where T : struct
Type | Name | Description |
---|---|---|
T[] | data | An array of values to be written to the current stream. |
Name | Description |
---|---|
T |
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. |
Writes a range of bytes to the current stream, and advances the current position within this stream by the number of bytes written.
public void WriteRange(IntPtr source, long count)
Type | Name | Description |
---|---|---|
IntPtr | source | A pointer to the location to start copying from. |
long | count | The number of bytes to copy from source 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. |
Writes an array of values to the current stream, and advances the current position within this stream by the number of bytes written.
public void WriteRange<T>(T[] data, int offset, int count) where T : struct
Type | Name | Description |
---|---|---|
T[] | data | An array of values to be written to the stream. |
int | offset | The zero-based offset in data at which to begin copying values to the current stream. |
int | count | The number of values to be written to the current stream. If this is zero,
all of the contents |
Name | Description |
---|---|
T | The type of the values 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 | This stream does not support writing. |