Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Modules§

kind_tags
Declaration kind tag values.
section_tags
Well-known section tags for the extended binary format.

Functions§

blobs_equal
Checks whether two serialized blobs are identical by hash.
count_by_kind
Counts declarations by kind in an already-parsed list.
decode_decl
Decodes a SerialDecl from a reader.
dedup_decls
Returns deduplicated declarations (last occurrence wins).
deserialize_decl_names
Deserialize a list of declaration names from OleanC binary data.
deserialize_decls
Deserialize a Vec<SerialDecl> from binary.
encode_decl
Encodes a SerialDecl with full field data into bytes.
filter_by_kind
Filters declarations by kind tag.
find_by_prefix
Finds the first declaration with a given name prefix.
fnv1a_64
Computes a simple hash for a binary blob (for integrity checking).
from_hex
Decode a hexadecimal string to bytes.
group_by_namespace
Groups declarations by namespace prefix (up to first dot).
has_valid_magic
Validates that a serialized blob starts with valid OleanC magic.
merge_decls
Merge two declaration lists using a strategy.
peek_decl_count
Returns the declared decl_count from a blob (assumes magic + version valid).
peek_version
Returns the declared version from a blob (assumes magic is valid).
read_bools
Reads a sequence of booleans from a compact bitfield.
read_oleanc_file
Read an OleanC file from disk and return its declaration names.
serialize_decl_names
Serialize a list of declaration names into the OleanC binary format.
serialize_decls
Serialize a Vec<SerialDecl> to binary.
serialized_decl_size
Compute byte size of serializing a SerialDecl.
serialized_string_size
Compute byte size of serializing a string.
sort_decls_by_name
Sorts a declaration list by name.
to_hex
Encode a byte slice as hexadecimal for display.
total_serialized_size
Compute the total byte size of a serialized declaration list.
with_context
Wraps a deserialization call with context for better error messages.
write_bools
Writes a sequence of booleans compactly as a bitfield.
write_name_table_section
Write a name table as a section to a writer.
write_oleanc_file
Write an OleanC file to disk containing the given declaration names.

Type Aliases§

SerialResult
A type alias for results with SerialError.