Inflater.Inflate Method

Definition

Overloads

Inflate(Byte[])

Uncompresses bytes into specified buffer.

Inflate(Byte[], Int32, Int32)

Uncompresses bytes into specified buffer.

Inflate(Byte[])

Uncompresses bytes into specified buffer.

[Android.Runtime.Register("inflate", "([B)I", "GetInflate_arrayBHandler")]
public virtual int Inflate (byte[]? b);
[<Android.Runtime.Register("inflate", "([B)I", "GetInflate_arrayBHandler")>]
abstract member Inflate : byte[] -> int
override this.Inflate : byte[] -> int

Parameters

b
Byte[]

the buffer for the uncompressed data

Returns

the actual number of uncompressed bytes

Attributes

Exceptions

if the underlying stream is corrupted or was not compressed using a Deflater.

Remarks

Uncompresses bytes into specified buffer. Returns actual number of bytes uncompressed. A return value of 0 indicates that needsInput() or needsDictionary() should be called in order to determine if more input data or a preset dictionary is required. In the latter case, getAdler() can be used to get the Adler-32 value of the dictionary required.

Java documentation for java.util.zip.Inflater.inflate(byte[]).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Inflate(Byte[], Int32, Int32)

Uncompresses bytes into specified buffer.

[Android.Runtime.Register("inflate", "([BII)I", "GetInflate_arrayBIIHandler")]
public virtual int Inflate (byte[]? b, int off, int len);
[<Android.Runtime.Register("inflate", "([BII)I", "GetInflate_arrayBIIHandler")>]
abstract member Inflate : byte[] * int * int -> int
override this.Inflate : byte[] * int * int -> int

Parameters

b
Byte[]

the buffer for the uncompressed data

off
Int32

the start offset of the data

len
Int32

the maximum number of uncompressed bytes

Returns

the actual number of uncompressed bytes

Attributes

Exceptions

if the underlying stream is corrupted or was not compressed using a Deflater.

Remarks

Uncompresses bytes into specified buffer. Returns actual number of bytes uncompressed. A return value of 0 indicates that needsInput() or needsDictionary() should be called in order to determine if more input data or a preset dictionary is required. In the latter case, getAdler() can be used to get the Adler-32 value of the dictionary required.

Java documentation for java.util.zip.Inflater.inflate(byte[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to