IdeaBlade DevForce 2010 Help Reference
Write Method
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace > GZipStream Class : Write Method



buffer
The buffer holding data to write to the stream.
offset
the offset within that data array to find the first byte to write.
count
the number of bytes to write.
Write data to the stream.

Syntax

Visual Basic (Declaration) 
Public Overrides Sub Write( _
   ByVal buffer() As Byte, _
   ByVal offset As Integer, _
   ByVal count As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As GZipStream
Dim buffer() As Byte
Dim offset As Integer
Dim count As Integer
 
instance.Write(buffer, offset, count)
C# 
public override void Write( 
   byte[] buffer,
   int offset,
   int count
)
C++/CLI 
public:
void Write( 
   array<byte>^ buffer,
   int offset,
   int count
) override 

Parameters

buffer
The buffer holding data to write to the stream.
offset
the offset within that data array to find the first byte to write.
count
the number of bytes to write.

Remarks

If you wish to use the GZipStream to compress data while writing, you can create a GZipStream with CompressionMode.Compress, and a writable output stream. Then call Write() on that GZipStream, providing uncompressed data as input. The data sent to the output stream will be the compressed form of the data written.

A GZipStream can be used for Read() or Write(), but not both. Writing implies compression. Reading implies decompression.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.