MCPcopy Create free account
hub / github.com/PerroEngine/Perro / raw_bytes

Method raw_bytes

perro_source/audio_stack/perro_pawdio/src/mic.rs:161–163  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

159 PMIC_VERSION => Self::unpack_v1(bytes),
160 PMIC_VERSION_COMPRESSED => Self::unpack_v2(bytes),
161 version => Err(format!("unsupported mic clip version {version}")),
162 }
163 }
164
165 fn unpack_v1(bytes: &[u8]) -> Result<Self, String> {
166 let channels = u16::from_le_bytes([bytes[6], bytes[7]]);

Callers 1

Calls 3

pack_v1Method · 0.80
lenMethod · 0.45
maxMethod · 0.45

Tested by 1