Sha256: d1381669e49651d0633e1f17a6bda58da5688e83585eb539bc4ac8b6f4c50109

Contents?: true

Size: 265 Bytes

Versions: 13

Compression:

Stored size: 265 Bytes

Contents

# frozen_string_literal: true

require "ffi"

module GirFFI
  # Library of libc functions.
  module LibC
    extend FFI::Library
    ffi_lib FFI::Library::LIBC

    attach_function :malloc, [:size_t], :pointer
    attach_function :free, [:pointer], :void
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.16.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.16.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.9 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.8 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.7 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.6 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.5 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.4 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.3 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.2 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.15.0 lib/gir_ffi/lib_c.rb