Skip to main content

Module reader

Module reader 

Source
Expand description

Base reader utilities for Altium CFB files.

Provides common reading operations for compound file binary format.

Traits§

ReadExt
Extension trait for convenient reading operations.

Functions§

decode_windows_1252
Decodes a byte slice from Windows-1252 encoding to a String.
decompress_zlib
Decompresses zlib-compressed data.
read_block
Reads a size-prefixed block of data.
read_block_with
Reads a size-prefixed block and interprets it using a callback.
read_c_string
Reads a C-style null-terminated string of known buffer size.
read_compressed_storage
Reads compressed storage: (id, data) pair with zlib compression.
read_coord_point
Reads a CoordPoint (two i32 values for x, y).
read_font_name
Reads a fixed-length UTF-16 font name (32 bytes, null-terminated UTF-16).
read_header
Reads the header stream (u32 data size).
read_parameters
Reads parameters from a sized block.
read_parameters_block
Reads parameters from a block (i32 size prefix).
read_pascal_short_string
Reads a Pascal short string (byte size prefix, no null terminator).
read_pascal_string
Reads a Pascal-style string (i32 size prefix, null-terminated content).
read_raw_string
Reads a raw string of known length (no length prefix, no null terminator).
read_string_block
Reads a string block (i32 size prefix, then byte size prefix for content).