Inflater.SetDictionary Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetDictionary(ByteBuffer) |
Sets the preset dictionary to the bytes in the given buffer. |
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(ByteBuffer)
Sets the preset dictionary to the bytes in the given buffer.
[Android.Runtime.Register("setDictionary", "(Ljava/nio/ByteBuffer;)V", "GetSetDictionary_Ljava_nio_ByteBuffer_Handler", ApiSince=35)]
public virtual void SetDictionary (Java.Nio.ByteBuffer? dictionary);
[<Android.Runtime.Register("setDictionary", "(Ljava/nio/ByteBuffer;)V", "GetSetDictionary_Ljava_nio_ByteBuffer_Handler", ApiSince=35)>]
abstract member SetDictionary : Java.Nio.ByteBuffer -> unit
override this.SetDictionary : Java.Nio.ByteBuffer -> unit
Parameters
- dictionary
- ByteBuffer
the dictionary data bytes
- Attributes
Remarks
Sets the preset dictionary to the bytes in the given buffer. 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.
The bytes in given byte buffer will be fully consumed by this method. On return, its position will equal its limit.
Added in 11.
Java documentation for java.util.zip.Inflater.setDictionary(java.nio.ByteBuffer)
.
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[])
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")]
public virtual void SetDictionary (byte[]? dictionary);
[<Android.Runtime.Register("setDictionary", "([B)V", "GetSetDictionary_arrayBHandler")>]
abstract member SetDictionary : byte[] -> unit
override this.SetDictionary : byte[] -> unit
Parameters
- bdictionary
- 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")]
public virtual void SetDictionary (byte[]? dictionary, 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
- bdictionary
- 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.