Skip to main content

read_section_debug_info

Function read_section_debug_info 

Source
pub fn read_section_debug_info(
    buf: &[u8],
    index: &InkbIndex,
) -> Result<Option<DebugInfoSection>, DecodeError>
Expand description

see crate::StoryData::debug_info’s doc for why presence itself is meaningful here.

Reserved flags bits are read through unmodified, never rejected — the section’s explicit, ruled departure from this format’s default strict-rejection posture (§2.2’s “reserved-bit forward compatibility”). A future revision needing genuinely new per-entry bytes still bumps [DEBUG_INFO_SECTION_VERSION] like any other section-local encoding change; nothing about this leniency exempts that.