Write Method (buffer, offset, count)

DotNetZip

Ionic Zip Library v1.9.1.6 Write Method (buffer, offset, count)
ReferenceIonic.ZlibGZipStreamWrite(array<Byte>[]()[][], Int32, Int32)
Write data to the stream.
Declaration Syntax
C# Visual Basic Visual C++
public override void Write(
	byte[] buffer,
	int offset,
	int count
)
Public Overrides Sub Write ( _
	buffer As Byte(), _
	offset As Integer, _
	count As Integer _
)
public:
virtual void Write(
	array<unsigned char>^ buffer, 
	int offset, 
	int count
) override
Parameters
buffer (array<Byte>[]()[][])
The buffer holding data to write to the stream.
offset (Int32)
the offset within that data array to find the first byte to write.
count (Int32)
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.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)