Skip to main content

append_embedded_config

Function append_embedded_config 

Source
pub fn append_embedded_config<T: Serialize>(
    binary_data: &[u8],
    config: &T,
) -> Result<Vec<u8>, EmbeddedConfigError>
Expand description

Append embedded configuration to a binary.

Writes: original binary bytes + JSON payload + 4-byte LE length + magic bytes.