rpc: extract opcode without swabbing the entire message.