pub fn decode( buffer: &mut [u16], count: Vec2<usize>, size: Vec2<usize>, max_value: u16, ) -> IoResult<()>