pub fn validate_fixed_element_array_len( buf_len: usize, element_size: usize, ) -> Result<usize, EncodingError>
Validate that a buffer length is divisible by the element size for fixed-element arrays.