Sha256: 1a39f8b136644e08bd78bdb89bd9bd17e05858b8bf32369223c11837ded5fb9b

Contents?: true

Size: 532 Bytes

Versions: 3

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

require_relative 'build/loader'

module SleepingKangaroo12
  module Binding
    extend ::FFI::Library
    ffi_lib Build::Loader.find('SleepingKangaroo12')

    attach_function :init, :SleepingKangaroo12_Init, %i[int], :pointer
    attach_function :update, :SleepingKangaroo12_Update, %i[pointer pointer size_t], :int
    attach_function :final, :SleepingKangaroo12_Final, %i[pointer pointer pointer size_t], :int
    attach_function :destroy, :SleepingKangaroo12_Destroy, %i[pointer], :void
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sleeping_kangaroo12-0.0.6 lib/sleeping_kangaroo12/binding.rb
sleeping_kangaroo12-0.0.4 lib/sleeping_kangaroo12/binding.rb
sleeping_kangaroo12-0.0.3 lib/sleeping_kangaroo12/binding.rb