check_u32_len

Function check_u32_len 

Source
pub(crate) fn check_u32_len(name: &str, len: usize) -> Result<(), ParquetError>
Expand description

Fail loud instead of silently truncating a wire-format u32 length prefix when a section exceeds 4 GiB.

pub(crate) so parquet_optimized’s length-prefixed sections (the same [len:u32][bytes] wire shape) can share this guard instead of growing an unguarded sibling copy of the cast.