Sha256: c9ef380d5f39f4b2b3c19b5b02a5c77a1417671cbeb48fb8e26169a206f63bd6

Contents?: true

Size: 565 Bytes

Versions: 3

Compression:

Stored size: 565 Bytes

Contents

require 'ffi'

module FXlsx
  module LibC
    extend FFI::Library
    ffi_lib FFI::Library::LIBC
    
    # memory allocators
    attach_function :malloc, [:size_t], :pointer
    attach_function :calloc, [:size_t], :pointer
    attach_function :valloc, [:size_t], :pointer
    attach_function :realloc, [:pointer, :size_t], :pointer
    attach_function :free, [:pointer], :void
    
    # memory movers
    attach_function :memcpy, [:pointer, :pointer, :size_t], :pointer
    attach_function :bcopy, [:pointer, :pointer, :size_t], :void
    
  end # module LibC
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
f_xlsx-0.3.0 lib/f_xlsx/lib_c.rb
f_xlsx-0.2.9 lib/f_xlsx/lib_c.rb
f_xlsx-0.2.8 lib/f_xlsx/lib_c.rb