BitStream

Overview

BitStream is a class in Aspose.PDF FOSS for Python.

Minimal bit-oriented buffer used by compatibility code.

This class provides 4 methods for working with BitStream objects in Python programs. Available methods include: __init__, read_array, read_byte, write. All public members are accessible to any Python application after installing the Aspose.PDF FOSS for Python package. Properties: length, position.

Properties

NameTypeAccessDescription
lengthintReadGets the length.
positionintReadGets the position.

Methods

SignatureDescription
__init__(capacity: int)Calls init(capacity) on this BitStream instance.
write(value: int, offset: int, bit_count: int)Calls write(value, offset, bit_count) on this BitStream instance.
read_array(bit_count: int)list[int]Calls read_array(bit_count) on this BitStream instance.
read_byte()intCalls read_byte on this BitStream instance.

See Also