pub fn read_opcode(bytes: &[u8]) -> Result<OpCode, UnexpectedEndOfInput>
Expand description

Read a slice of bytes and returns an opcode, possibly with its data.

Unknown opcodes are interpreted as NOP. The parsing might fail if the slice is too short.