Class: Seccomp::Notify::BPF::Instruction
- Inherits:
-
Struct
- Object
- Struct
- Seccomp::Notify::BPF::Instruction
- Defined in:
- lib/seccomp/notify/bpf/instruction.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#jf ⇒ Object
Returns the value of attribute jf.
-
#jt ⇒ Object
Returns the value of attribute jt.
-
#k ⇒ Object
Returns the value of attribute k.
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code
6 7 8 |
# File 'lib/seccomp/notify/bpf/instruction.rb', line 6 def code @code end |
#jf ⇒ Object
Returns the value of attribute jf
6 7 8 |
# File 'lib/seccomp/notify/bpf/instruction.rb', line 6 def jf @jf end |
#jt ⇒ Object
Returns the value of attribute jt
6 7 8 |
# File 'lib/seccomp/notify/bpf/instruction.rb', line 6 def jt @jt end |
#k ⇒ Object
Returns the value of attribute k
6 7 8 |
# File 'lib/seccomp/notify/bpf/instruction.rb', line 6 def k @k end |
Instance Method Details
#to_binary ⇒ Object
7 8 9 |
# File 'lib/seccomp/notify/bpf/instruction.rb', line 7 def to_binary [code, jt, jf, k].pack(Structs::INSTRUCTION_FORMAT) end |