Module move_binary_format::file_format_common
source · [−]Expand description
Constants for the binary format.
Definition for the constants of the binary format, used by the serializer and the deserializer. This module also offers helpers for the serialization and deserialization of certain integer indexes.
We use LEB128 for integer compression. LEB128 is a representation from the DWARF3 spec, http://dwarfstd.org/Dwarf3Std.php or https://en.wikipedia.org/wiki/LEB128. It’s used to compress mostly indexes into the main binary tables.
Enums
Constant values for the binary format header.
List of opcodes constants.
Constants for signature blob values.
Constants for table types in the binary.
Constants
Upper limit on the binary size
Version 1: the initial version
Version 2: changes compared with version 1
Version 3: changes compared with version 2
Version 4: changes compared with version 3
Version 5: changes compared with version 4 +/- script and public(script) verification is now adapter specific
Functions
The encoding of the instruction is the serialized form of it, but disregarding the serialization of the instruction’s argument(s).