Write Method (buffer, offset, count)

DotNetZip

Ionic Zip Library v1.9.1.6 Write Method (buffer, offset, count)
ReferenceIonic.BZip2BZip2OutputStreamWrite(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

Use the BZip2OutputStream to compress data while writing: create a BZip2OutputStream with a writable output stream. Then call Write() on that BZip2OutputStream, providing uncompressed data as input. The data sent to the output stream will be the compressed form of the input data.

A BZip2OutputStream can be used only for Write() not for Read().

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