decode_wave_osc_bytes

Function decode_wave_osc_bytes 

Source
pub fn decode_wave_osc_bytes(data: &[u8]) -> Result<Vec<u8>, String>
Expand description

Decode a AgentMux OSC escape sequence, returning the payload bytes.

Strips the OSC prefix and terminator (BEL or ST). If payload starts with ‘{’, it’s JSON. Otherwise, base64 decode.