decode_Streams

Overview

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

This class provides 11 methods for working with decode_Streams objects in Python programs. Available methods include: BrotliFileInput, BrotliFileInputFunction, BrotliFileOutput, BrotliFileOutputFunction, BrotliInitMemInput, BrotliInitMemOutput, BrotliMemInputFunction, BrotliMemOutputFunction, BrotliRead, BrotliWrite, __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 decode_Streams instance.
BrotliRead(input, buf, buf_off, _hx_len)` reads compressed data from a Brotli input source into a user‑provided buffer
BrotliWrite(out, buf, buf_off, _hx_len)Writes data from buf to a Brotli-compressed output stream
BrotliMemInputFunction(data, buf, buf_off, count)` reads from an in‑memory buffer, enabling Brotli decompression of byte arrays without file I/O
BrotliInitMemInput(buffer, length)Initializes a memory‑based Brotli input source with buffer and length
BrotliMemOutputFunction(data, buf, buf_off, count)Writes count bytes from buf at buf_off into data
BrotliInitMemOutput(buffer)` creates an in‑memory output sink for Brotli‑compressed data, useful for generating WOFF2 payloads
BrotliFileInputFunction(data, buf, buf_off, count)Reads count bytes from a file handle into buf at buf_off
BrotliFileInput(f)` creates a Brotli input stream from an open file object, enabling file‑based decompression
BrotliFileOutputFunction(data, buf, buf_off, count)Writes count bytes from buf at buf_off to a file handle
BrotliFileOutput(f)Creates a Brotli output destination that writes to the given file object

See Also