Skip to main content

Module entity_ontology_section

Module entity_ontology_section 

Source
Expand description

Versioned .10d Entity Behavioral & Affordance Ontology Section.

EONT1 encodes the digital twin’s entity ontology directly inside a .10d living container (SectionType 17). It packs:

  • Mini-header: entity DID hash, taxon IRI hash, lifecycle stage, initial energy, damage, hydration, wear
  • Affordance Table: fixed-stride POD records (action ID, category, permission tier, preconditions, effects, clip ID)
  • Zero-heap on hot query and evaluation paths.

Re-exports§

pub use entity_ontology_encoded_len as personal_ontology_encoded_len;
pub use encode_entity_ontology_section as encode_personal_ontology_section;
pub use decode_entity_ontology_section_into as decode_personal_ontology_section_into;

Structs§

AffordanceBinaryRecord
48-byte fixed-stride binary record representing one affordance.
DevelopmentalKeyframeRecord
32-byte fixed-stride binary record representing an ontogenetic growth milestone.
EntityOntologyMiniHeader
40-byte header for SectionType::EntityOntology (EONT1), unified with etalon_render::skeletal::OntogeneticStateHeader. Domain-neutral 40-byte ontogenetic and metabolic state header (EONT1 layout).

Enums§

EntityOntologySectionError

Constants§

AFFORDANCE_RECORD_SIZE
DEVELOPMENTAL_KEYFRAME_RECORD_SIZE
ENTITY_ONTOLOGY_MINI_HEADER_SIZE
ENTITY_ONTOLOGY_SECTION_VERSION
MAGIC_EONT
MAGIC_PONT
MAX_AFFORDANCES_PER_SECTION
PERSONAL_ONTOLOGY_MINI_HEADER_SIZE
PERSONAL_ONTOLOGY_SECTION_VERSION

Functions§

decode_entity_ontology_section_into
Decode a .10d EntityOntology section into caller-supplied AffordanceBinaryRecord buffer. Zero heap allocations in hot path.
encode_entity_ontology_section
Encode an EntityOntology into a caller-supplied binary buffer.
entity_ontology_encoded_len
Calculate total encoded byte length for a given affordance count.

Type Aliases§

PersonalOntologyMiniHeader
PersonalOntologySectionError