Function schema_registry_converter::schema_registry_common::get_bytes_result[][src]

pub fn get_bytes_result(bytes: Option<&[u8]>) -> BytesResult

Just analyses the bytes which are contained in the key or value of an kafka record. When valid it will return the id and the data bytes. The way schema registry messages are encoded is starting with a zero, with the next 4 bytes having the id. The other bytes are the encoded message.