Sha256: 5996792034b130bdd39c389027e56890e9fc6766544d6ac00ec582b127a95277

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

module H3
  module Bindings
    # Base for FFI Bindings.
    #
    # When extended, this module sets up FFI to use the H3 C library.
    module Base
      def self.extended(base)
        base.extend FFI::Library
        base.ffi_lib ["libh3", "libh3.1"]
        base.typedef :ulong_long, :h3_index
        base.const_set('H3_INDEX', :ulong_long)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
h3-3.2.0 lib/h3/bindings/base.rb