Xceed .NET Libraries Documentation
Xceed.Compression Assembly / Xceed.Compression Namespace / ZCryptStream Class / Write Method
An array of bytes. This method copies count bytes from buffer to the current stream.
The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
The number of bytes to be written to the current stream.


In This Topic
    Write Method (ZCryptStream)
    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.
    Syntax
    'Declaration
     
    
    Public Overrides Sub Write( _
       ByVal buffer() As Byte, _
       ByVal offset As Integer, _
       ByVal count As Integer _
    ) 
    'Usage
     
    
    Dim instance As ZCryptStream
    Dim buffer() As Byte
    Dim offset As Integer
    Dim count As Integer
     
    instance.Write(buffer, offset, count)
    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.
    offset
    The zero-based byte offset in buffer at which to begin copying bytes to the current stream.
    count
    The number of bytes to be written to the current stream.
    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.
    Supported Frameworks

    .NET: net5.0, net5.0-windows, net6.0, net6.0-macos, net6.0-windows, net7.0, net7.0-macos, net7.0-windows, net8.0, net8.0-browser, net8.0-macos, net8.0-windows, net9.0, net9.0-browser, net9.0-macos, net9.0-windows, net10.0, net10.0-browser, net10.0-macos, net10.0-windows.

    .NET Standard: netstandard2.0, netstandard2.1

    .NET Framework: net20, net35, net40, net403, net45, net451, net452, net46, net461, net462, net463, net47, net471, net472, net48, net481.

    See Also