Sha256: 2bd320932a9599266a0ce31b26ea3945b4345ed4bf027353584362824c6f56ef

Contents?: true

Size: 265 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
gir_ffi-0.14.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.14.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.13.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.13.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.12.1 lib/gir_ffi/lib_c.rb
gir_ffi-0.12.0 lib/gir_ffi/lib_c.rb
gir_ffi-0.11.4 lib/gir_ffi/lib_c.rb
gir_ffi-0.11.3 lib/gir_ffi/lib_c.rb
gir_ffi-0.11.2 lib/gir_ffi/lib_c.rb