adTempus API
ArcanaDevelopment.adTempus.Shared Namespace / BlowfishStream Class / Write Method
An array of bytes. This method copies count bytes from buffer to the current stream.The buffer containing the data to write.
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.The offset in the buffer where the data begins.
The number of bytes to be written to the current stream.The number of bytes to write.

In This Topic
    Write Method
    In This Topic
    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. Write data to the stream after decrypting it.
    Syntax
    'Declaration
     
    
    Public Overrides Sub Write( _
       ByVal buffer() As Byte, _
       ByVal offset As Integer, _
       ByVal count As Integer _
    ) 
    public override void Write( 
       byte[] buffer,
       int offset,
       int count
    )

    Parameters

    buffer
    An array of bytes. This method copies count bytes from buffer to the current stream.The buffer containing the data to write.
    offset
    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.The offset in the buffer where the data begins.
    count
    The number of bytes to be written to the current stream.The number of bytes to write.
    Exceptions
    ExceptionDescription
    The sum of offset and count is greater than the buffer length.
    buffer is a null reference (Nothing in Visual Basic).
    offset or count is negative.
    An I/O error occured, such as the specified file cannot be found.
    The stream does not support writing.
    System.IO.Stream.Write(System.Byte[],System.Int32,System.Int32) was called after the stream was closed.
    See Also