encode_Prefix

Overview

encode_Prefix is a class in Aspose.Font FOSS for Python.

This class provides 3 methods for working with encode_Prefix objects in Python programs. Available methods include: GetBlockLengthPrefixCode, PrefixEncodeCopyDistance, __init__. All public members are accessible to any Python application after installing the Aspose.Font FOSS for Python package.

Methods

SignatureDescription
__init__()Calls init on this encode_Prefix instance.
GetBlockLengthPrefixCode(_hx_len, code, code_off, n_extra, n_extra_off, extra, extra_off)Returns the prefix code, extra bits count, and extra bits value for a given block length, enabling Brotli‑style block length encoding
PrefixEncodeCopyDistance(distance_code, num_direct_codes, postfix_bits, code, extra_bits)Encodes a copy distance using distance code, direct codes, and postfix bits

See Also