Sha256: 0c665c1b83a255985d81200ebfae0d73ddc137cc4881839e3b68b8bb086d862a

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

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

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