Inflater.SetDictionary Method

Definition

Overloads

SetDictionary(Byte[])

Sets the preset dictionary to the given array of bytes.

SetDictionary(Byte[], Int32, Int32)

Sets the preset dictionary to the given array of bytes.

SetDictionary(Byte[])

Sets the preset dictionary to the given array of bytes.

[Android.Runtime.Register("setDictionary", "([B)V", "GetSetDictionary_arrayBHandler")]
public virtual void SetDictionary (byte[]? b);
[<Android.Runtime.Register("setDictionary", "([B)V", "GetSetDictionary_arrayBHandler")>]
abstract member SetDictionary : byte[] -> unit
override this.SetDictionary : byte[] -> unit

Parameters

b
Byte[]

the dictionary data bytes

Attributes

Remarks

Sets the preset dictionary to the given array of bytes. Should be called when inflate() returns 0 and needsDictionary() returns true indicating that a preset dictionary is required. The method getAdler() can be used to get the Adler-32 value of the dictionary needed.

Java documentation for java.util.zip.Inflater.setDictionary(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

SetDictionary(Byte[], Int32, Int32)

Sets the preset dictionary to the given array of bytes.

[Android.Runtime.Register("setDictionary", "([BII)V", "GetSetDictionary_arrayBIIHandler")]
public virtual void SetDictionary (byte[]? b, int off, int len);
[<Android.Runtime.Register("setDictionary", "([BII)V", "GetSetDictionary_arrayBIIHandler")>]
abstract member SetDictionary : byte[] * int * int -> unit
override this.SetDictionary : byte[] * int * int -> unit

Parameters

b
Byte[]

the dictionary data bytes

off
Int32

the start offset of the data

len
Int32

the length of the data

Attributes

Remarks

Sets the preset dictionary to the given array of bytes. Should be called when inflate() returns 0 and needsDictionary() returns true indicating that a preset dictionary is required. The method getAdler() can be used to get the Adler-32 value of the dictionary needed.

Java documentation for java.util.zip.Inflater.setDictionary(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