Sha256: 10864ef56fe63b8022ead19dde860e87d3ffd4fa4aaac78185f9833ddbcb9e92

Contents?: true

Size: 264 Bytes

Versions: 9

Compression:

Stored size: 264 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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.11.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.11.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.10.2 lib/gir_ffi/lib_c.rb
gir_ffi-0.10.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.10.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.10.0.pre1 lib/gir_ffi/lib_c.rb
gir_ffi-0.9.5 lib/gir_ffi/lib_c.rb
gir_ffi-0.9.4 lib/gir_ffi/lib_c.rb
gir_ffi-0.9.3 lib/gir_ffi/lib_c.rb