Class: HidApi::WideString

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/hid_api/wide_string.rb

Class Method Summary collapse

Class Method Details

.from_native(value, context) ⇒ Object



9
10
11
12
# File 'lib/hid_api/wide_string.rb', line 9

def from_native value, context
  return nil if value.null?
  value.read_wchar_string
end