Sha256: b4bed75b6c5164d211f4a7b6a2ad9e2f589177a300f6829ece1068d0f68112ab

Contents?: true

Size: 339 Bytes

Versions: 2

Compression:

Stored size: 339 Bytes

Contents

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

      class << self
        def from_native(value, _context)
          value.get_uint(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/uint_pointer.rb
aprs_parser-1.0.0.pre lib/aprs_parser/converters/uint_pointer.rb