encode_Command_functions
Overview
encode_Command_functions is a class in Aspose.Font FOSS for Python.
This class provides 6 methods for working with encode_Command_functions objects in Python programs.
Available methods include: CombineLengthCodes, GetCopyLengthCode, GetDistCode, GetInsertLengthCode, GetLengthCode, __init__.
All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.
Methods
| Signature | Description |
|---|---|
__init__() | Calls init on this encode_Command_functions instance. |
GetDistCode(distance_code, code, extra) | Returns the distance code, base code, and extra bits for a given distance index, enabling construction of copy commands in Brotli encoding |
GetInsertLengthCode(insertlen) | Returns the Brotli insert‑length code for a given insert length |
GetCopyLengthCode(copylen) | Computes the copy‑length code for the given copylen |
CombineLengthCodes(inscode, copycode, distancecode) | Merges inscode, copycode and distancecode into a single code |
GetLengthCode(insertlen, copylen, distancecode, code, extra) | Returns a full length code using insertlen, copylen, distancecode, code and extra |