Versions in this module Expand all Collapse all v0 v0.2.1 Apr 25, 2017 Changes in this version + const OP_EXEC_ABS + const OP_EXEC_REL + const OP_EXIT + const OP_FRAME + const OP_MEM_MAP + const OP_MEM_READ + const OP_MEM_UNMAP + const OP_MEM_WRITE + const OP_NOP + const OP_REG_CHANGE + const OP_SPREG_CHANGE + const OP_SYSCALL + func Pack(w io.Writer, op Op) (int, error) + type Op interface + Pack func(w io.Writer) (int, error) + Unpack func(r io.Reader) (int, error) + func Unpack(r io.Reader) (Op, int, error) + type OpExecAbs struct + Addr uint64 + Size uint16 + func (o *OpExecAbs) Pack(w io.Writer) (int, error) + func (o *OpExecAbs) Unpack(r io.Reader) (int, error) + type OpExecRel struct + Size uint16 + func (o *OpExecRel) Pack(w io.Writer) (int, error) + func (o *OpExecRel) Unpack(r io.Reader) (int, error) + type OpExit struct + type OpFrame struct + Keyframe bool + Ops []Op + func (o *OpFrame) Pack(w io.Writer) (int, error) + func (o *OpFrame) Unpack(r io.Reader) (int, error) + type OpMemMap struct + Addr uint64 + Prot uint8 + Size uint64 + func (o *OpMemMap) Pack(w io.Writer) (int, error) + func (o *OpMemMap) Unpack(r io.Reader) (int, error) + type OpMemRead struct + Addr uint64 + Data []byte + func (o *OpMemRead) Pack(w io.Writer) (int, error) + func (o *OpMemRead) Unpack(r io.Reader) (int, error) + type OpMemUnmap struct + Addr uint64 + Size uint64 + func (o *OpMemUnmap) Pack(w io.Writer) (int, error) + func (o *OpMemUnmap) Unpack(r io.Reader) (int, error) + type OpMemWrite struct + Addr uint64 + Data []byte + func (o *OpMemWrite) Pack(w io.Writer) (int, error) + func (o *OpMemWrite) Unpack(r io.Reader) (int, error) + type OpNop struct + func (o *OpNop) Pack(w io.Writer) (int, error) + func (o *OpNop) Unpack(r io.Reader) (int, error) + type OpRegChange struct + Enum uint16 + Value uint64 + func (o *OpRegChange) Pack(w io.Writer) (int, error) + func (o *OpRegChange) Unpack(r io.Reader) (int, error) + type OpSpRegChange struct + Enum uint16 + Value []byte + func (o *OpSpRegChange) Pack(w io.Writer) (int, error) + func (o *OpSpRegChange) Unpack(r io.Reader) (int, error) + type OpSyscall struct + Args []uint64 + Index uint32 + Ops []Op + Ret uint64 + func (o *OpSyscall) Pack(w io.Writer) (int, error) + func (o *OpSyscall) Unpack(r io.Reader) (int, error)