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

Method byte_len

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

Source from the content-addressed store, hash-verified

167 let sample_rate = u32::from_le_bytes([bytes[8], bytes[9], bytes[10], bytes[11]]);
168 let frames = u32::from_le_bytes([bytes[12], bytes[13], bytes[14], bytes[15]]) as usize;
169 let payload = &bytes[PMIC_HEADER_LEN..];
170 let samples = decode_pcm_payload(payload, frames, channels)?;
171 Self::try_new(samples, sample_rate, channels)
172 }
173
174 fn unpack_v2(bytes: &[u8]) -> Result<Self, String> {

Callers 2

decode_and_cache_pcmMethod · 0.45
compression_ratioMethod · 0.45

Calls 2

lenMethod · 0.45
packMethod · 0.45

Tested by

no test coverage detected