Length is currently a newtype of u32. This is because the Decode and Encode impls are specialized to 32-bit integers:
If the implementation could support any usize, we could change the internal type to usize which would allow infallible conversions to/from usize.