Skip to content
  • Andreas Klebinger's avatar
    Don't variable-length encode magic iface constant. · 4ca0c8a1
    Andreas Klebinger authored and Marge Bot's avatar Marge Bot committed
    We changed to use variable length encodings for many types by default,
    including Word32. This makes sense for numbers but not when Word32 is
    meant to represent four bytes.
    
    I added a FixedLengthEncoding newtype to Binary who's instances
    interpret their argument as a collection of bytes instead of a number.
    
    We then use this when writing/reading magic numbers to the iface file.
    
    I also took the libery to remove the dummy iface field.
    
    This fixes #18180.
    4ca0c8a1