BinaryReader
Overview
BinaryReader is a class in Aspose.Font FOSS for Python.
Wraps a byte source in seekable BytesIO for big-endian font binary parsing.
Methods
| Signature | Description |
|---|---|
__init__(source: bytes | io.IOBase) | |
tell() → int | |
seek(offset: int, whence: int) | |
remaining() → int | |
read_u8() → int | |
read_u16() → int | |
read_u16_le() → int | |
read_u32() → int | |
read_u32_le() → int | |
read_u64() → int | |
read_i8() → int | |
read_i16() → int | |
read_i16_le() → int | |
read_i32() → int | |
read_fixed() → float | 16.16 fixed-point → float. |
read_f2dot14() → float | 2.14 fixed-point → float. |
read_bytes(n: int) → bytes | |
read_tag() → str | Read a 4-byte ASCII tag (e.g. |
read_pascal_string() → str | Read a Pascal-style length-prefixed string. |
read_cstring() → str | Read a null-terminated C string. |