Module: Keyutils::Lib::KeySerialConverter

Extended by:
FFI::DataConverter
Defined in:
lib/keyutils/lib.rb

Overview

When used on return values, raises a system call error if -1

Class Method Summary collapse

Class Method Details

.from_native(val, ctx) ⇒ Object



21
22
23
24
# File 'lib/keyutils/lib.rb', line 21

def self.from_native val, ctx
  fail SystemCallError, FFI.errno, caller if val == -1
  super
end