Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

XtsStream.Write Method

Namespace: Rebex.Security
Assembly: Rebex.Security.dll

Write(Byte[], Int32, Int32)

Writes a sequence of bytes to the stream and advances the current position within this stream by the number of bytes written.

Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
Type Name Description
Byte[] buffer

An array of bytes. This method copies count bytes from buffer to the stream.

Int32 offset

The zero-based byte offset in buffer at which to begin copying bytes to the stream.

Int32 count

The number of bytes to be written to the stream.

Overrides
Stream.Write(Byte[], Int32, Int32)
Exceptions
Type Condition
ArgumentException

The sum of offset and count is greater than the buffer length.

ArgumentNullException

buffer is null.

ArgumentOutOfRangeException

offset or count is negative.

IOException

An I/O error occurs.

NotSupportedException

The stream does not support writing.

ObjectDisposedException

Methods were called after the stream was closed.

In This Article
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies