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
| Name | Type | Access | Description |
|---|---|---|---|
length | int | Read | Gets the length. |
position | int | Read | Gets the position. |
Methods
| Signature | Description |
|---|---|
__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() → int | Calls read_byte on this BitStream instance. |