Skip to main content

schema_frame_id

Function schema_frame_id 

Source
pub fn schema_frame_id(
    magic: u8,
    id_0: u8,
    id_1: u8,
    id_2: u8,
    id_3: u8,
) -> Option<u32>
Expand description

Decode the exact big-endian schema ID from a complete Confluent prefix.

The adapter supplies the five prefix bytes only after establishing that they exist. Magic zero is the sole admitted framing version.