Class: Seccomp::Arg::Reference
- Inherits:
-
Object
- Object
- Seccomp::Arg::Reference
- Defined in:
- lib/seccomp/arg.rb
Overview
Builder bound to one syscall argument index.
Instance Method Summary collapse
- #initialize(index) ⇒ void constructor
-
#masked_eq(mask:, value:, width: 64) ⇒ ArgCmp
Build a masked equality comparison.
Constructor Details
#initialize(index) ⇒ void
68 69 70 71 72 73 74 |
# File 'lib/seccomp/arg.rb', line 68 def initialize(index) unless index.is_a?(Integer) && (0..5).cover?(index) raise ArgumentError, "arg must be an Integer between 0 and 5" end @index = index end |