pub fn encode_header(
mtype: MainType,
stype: SubType,
version: Version,
length: u32,
) -> IsccResult<Vec<u8>>Expand description
Encode ISCC header fields into bytes.
Concatenates varnibble-encoded MainType, SubType, Version, and length, then pads to byte boundary with zero bits on the right. Result is 2 bytes minimum (typical case), up to 8 bytes maximum.