Sha256: 2e147ebfdbcf970aaa39e8ef8b82c7f6d26dc82297d15fb8d7b5138fb9fe60fa

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 Bytes

Contents

module AprsParser
  module Converters
    class AprsPath
      extend FFI::DataConverter
      native_type FFI::Type::POINTER

      class << self
        # The path field is represented by an array of at least two strings
        def from_native(value, _context)
          value.get_array_of_string(0) unless value.null?
        end

        def reference_required?
          false
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aprs_parser-1.0.0 lib/aprs_parser/converters/path.rb
aprs_parser-1.0.0.pre lib/aprs_parser/converters/path.rb