(bytes: &[u8], cursor: &mut usize)
| 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)?, |
no test coverage detected