consume_bits would crash with a MatchError when the remaining bitstring had fewer bits than the group width. Added a guard clause to stop consuming when insufficient bits remain, matching how wgrib2 handles trailing padding in packed data sections. |
||
|---|---|---|
| .. | ||
| complex_packing.ex | ||
| extractor.ex | ||
| lambert_conformal.ex | ||
| section.ex | ||
| simple_packing.ex | ||