Class: AprsParser::Converters::ShortPointer

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/aprs_parser/converters/short_pointer.rb

Class Method Summary collapse

Class Method Details

.from_native(value, _context) ⇒ Object



8
9
10
# File 'lib/aprs_parser/converters/short_pointer.rb', line 8

def from_native(value, _context)
  value.get_short(0) unless value.null?
end

.reference_required?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/aprs_parser/converters/short_pointer.rb', line 12

def reference_required?
  false
end