语言

Deflater.SetDictionary 方法

定义

重载

名称 说明
SetDictionary(Byte[], Int32, Int32)

设置压缩的预设字典。

SetDictionary(Byte[])

设置压缩的预设字典。

SetDictionary(ByteBuffer)

设置压缩的预设字典。

SetDictionary(Byte[], Int32, Int32)

设置压缩的预设字典。

[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

参数

dictionary
Byte[]

字典数据字节

off
Int32

数据的起始偏移量

len
Int32

数据的长度

特性

注解

设置压缩的预设字典。 当可以预先确定历史记录缓冲区时,将使用预设字典。 当数据稍后使用 Inflater.inflate() 解压缩时,可以调用 Inflater.getAdler(),以获取解压缩所需的字典的 Adler-32 值。

Java文档java.util.zip.Deflater.setDictionary(byte[], int, int)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

SetDictionary(Byte[])

设置压缩的预设字典。

[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

参数

dictionary
Byte[]

字典数据字节

特性

注解

设置压缩的预设字典。 当可以预先确定历史记录缓冲区时,将使用预设字典。 当数据稍后使用 Inflater.inflate() 解压缩时,可以调用 Inflater.getAdler(),以获取解压缩所需的字典的 Adler-32 值。

Java文档java.util.zip.Deflater.setDictionary(byte[])。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

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

字典数据字节

特性

注解

设置压缩的预设字典。 当可以预先确定历史记录缓冲区时,将使用预设字典。 当数据稍后使用 Inflater.inflate() 解压缩时,可以调用 Inflater.getAdler(),以获取解压缩所需的字典的 Adler-32 值。

此方法将完全使用给定字节缓冲区中的字节。 返回时,其位置将等于其限制。

Java文档java.util.zip.Deflater.setDictionary(java.nio.ByteBuffer)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于