Expand description
PVM bitmask packer.
Internally the transpiler tracks instruction starts as a Vec<u8>
parallel to the code bytes (one byte per code byte; 0 =
continuation, 1 = instruction start). The chain Image’s wire
format uses the compact bit-packed form (one bit per code byte).
pack_bitmask converts.
Functions§
- pack_
bitmask - Pack a bitmask array (one byte per bit, 0 or 1) into packed bytes (LSB first).