MQDecoder
MQDecoder
概述
MQDecoder 是 Aspose.PDF FOSS 中用于 Python 的类。
附件 C 的 MQ 算术解码器。
此类为 Python 程序中的 MQDecoder 对象声明了 4 个方法。可用的方法包括:__init__、decode、reset_states、restart。在安装 Aspose.PDF FOSS for Python 包后,所有公共成员对任何 Python 应用程序均可访问。属性:states。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
states | list[list[int]] | 读取 | 获取状态。 |
方法
| 签名 | 描述 |
|---|---|
__init__(data: bytes, contexts: int) | Calls init(data, contexts) 在此 MQDecoder 实例上。 |
reset_states() | 将每个上下文恢复到表 D.7 的初始状态。 |
restart(position: int) | 在 (重新)初始化解码器 position (INITDEC). |
decode(context: int) → int | 在解码一个位 context. |