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

Method write_packed

perro_source/core/perro_structs/src/structs/matrix/mod.rs:1220–1227  ·  view source on GitHub ↗
(&self, out: &mut [f32])

Source from the content-addressed store, hash-verified

1218
1219 #[inline]
1220 pub fn write_packed(&self, out: &mut [f32]) -> Option<usize> {
1221 let len = Self::packed_len();
1222 if out.len() < len {
1223 return None;
1224 }
1225 out[..len].copy_from_slice(self.as_slice());
1226 Some(len)
1227 }
1228
1229 #[inline]
1230 pub fn read_packed(input: &[f32]) -> Option<Self> {

Callers 4

bench_matrix4_packFunction · 0.80
bench_matrix_sizes_packFunction · 0.80
bench_matrix_huge_packFunction · 0.80

Calls 3

copy_from_sliceMethod · 0.80
lenMethod · 0.45
as_sliceMethod · 0.45

Tested by

no test coverage detected