XsBufferedFileStream.Write Method | |
Writes a block of bytes to the file stream.
Namespace:
XSharp.IO
Assembly:
XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax VIRTUAL METHOD Write(
bytes AS BYTE[],
offset AS LONG,
count AS LONG
) AS VOID
public override void Write(
byte[] bytes,
int offset,
int count
)
Request Example
View SourceParameters
- bytes
- Type: Byte
- offset
- Type: Long
The zero-based byte offset in array from which to begin copying bytes to the stream. - count
- Type: Long
The maximum number of bytes to write.
Exceptions Exception | Condition |
---|
ArgumentNullException | array is . |
ArgumentException | offset and count describe an invalid range in array. |
ArgumentOutOfRangeException | offset or count is negative. |
IOException | An I/O error occurred.
-or-
Another thread may have caused an unexpected change in the position of the operating system's file handle. |
ObjectDisposedException | The stream is closed. |
NotSupportedException | The current stream instance does not support writing. |
Remarks This method overrides the normal behavior of the FileStream class and writed the data to an inmemory cache, when possible
See Also