Xceed Real-Time Zip for .NET Documentation
Write Method (ChecksumStream)


Xceed.Compression.Formats Assembly > Xceed.Compression.Formats Namespace > ChecksumStream 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.
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 ChecksumStream
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.
Remarks

Use the CanWrite property to determine whether the current instance supports writing.

If the write operation is successful, the position within the stream advances by the number of bytes written. If an exception occurs, the position within the stream remains unchanged.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ChecksumStream Class
ChecksumStream Members
Base Implementation in Write