Inflater.SetDictionary 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| SetDictionary(ByteBuffer) |
将预设字典设置为给定缓冲区中的字节。 |
| SetDictionary(Byte[]) |
将预设字典设置为给定的字节数组。 |
| SetDictionary(Byte[], Int32, Int32) |
将预设字典设置为给定的字节数组。 |
SetDictionary(ByteBuffer)
将预设字典设置为给定缓冲区中的字节。
[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
参数
- dictionary
- ByteBuffer
字典数据字节
- 属性
注解
将预设字典设置为给定缓冲区中的字节。 当 inflate() 返回 0 并且 needsDictionary() 返回 true 时应调用,指示需要预设字典。 方法 getAdler() 可用于获取所需的字典的 Adler-32 值。
此方法将完全使用给定字节缓冲区中的字节。 返回时,其位置将等于其限制。
已在 11 中添加。
Java文档java.util.zip.Inflater.setDictionary(java.nio.ByteBuffer)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SetDictionary(Byte[])
将预设字典设置为给定的字节数组。
[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
参数
- bdictionary
- Byte[]
字典数据字节
- 属性
注解
将预设字典设置为给定的字节数组。 当 inflate() 返回 0 并且 needsDictionary() 返回 true 时应调用,指示需要预设字典。 方法 getAdler() 可用于获取所需的字典的 Adler-32 值。
Java文档java.util.zip.Inflater.setDictionary(byte[])。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
SetDictionary(Byte[], Int32, Int32)
将预设字典设置为给定的字节数组。
[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
参数
- bdictionary
- Byte[]
字典数据字节
- off
- Int32
数据的起始偏移量
- len
- Int32
数据的长度
- 属性
注解
将预设字典设置为给定的字节数组。 当 inflate() 返回 0 并且 needsDictionary() 返回 true 时应调用,指示需要预设字典。 方法 getAdler() 可用于获取所需的字典的 Adler-32 值。
Java文档java.util.zip.Inflater.setDictionary(byte[], int, int)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。