Noemax DotNetGZip Report an issue | Discuss in forums
GZipStream.Write(byte[],int,int) Method
See Also 
Noemax.GZip Assembly > Noemax.GZip Namespace > GZipStream Class : Write Method



buffer
The array containing the bytes to compress.
offset

The zero-based byte offset in the buffer at which to begin compressing and copying bytes to the current stream.

count
The number of bytes to compress.
Writes compressed bytes to the underlying stream from the specified byte array.


Namespace: Noemax.GZip
Assembly: Noemax.GZip (in Noemax.GZip.dll)

Syntax

Visual Basic (Declaration) 
Overrides Public 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 array containing the bytes to compress.
offset

The zero-based byte offset in the buffer at which to begin compressing and copying bytes to the current stream.

count
The number of bytes to compress.

Return Value

The number of bytes compressed into the stream.

Remarks

The write might not occur immediately since it is buffered until the buffer size is reached or until the Flush, Close method is called.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also

Reference

GZipStream Class
GZipStream Members
Base Implementation in System.IO.Stream