| 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) | |
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.
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.
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