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

Function read_f32

perro_source/render_stack/perro_render_bridge/src/two_d.rs:613–616  ·  view source on GitHub ↗
(bytes: &[u8], cursor: &mut usize)

Source from the content-addressed store, hash-verified

611 2 => {
612 let count = read_u32(bytes, cursor)? as usize;
613 let mut points = Vec::with_capacity(
614 count.min(bytes.len().saturating_sub(*cursor) / MIN_POLY_POINT_BYTES),
615 );
616 for _ in 0..count {
617 points.push(perro_structs::Vector2::new(
618 read_f32(bytes, cursor)?,
619 read_f32(bytes, cursor)?,

Callers 2

decode_tileset_2d_binaryFunction · 0.70

Calls 2

okMethod · 0.80
read_bytesFunction · 0.70

Tested by

no test coverage detected