You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Go and Ruby-FFI How to write a shared library in Go that can be loaded by Ruby-FFI. With the release of Go 1.5 we got access to a new buildmode called c-shared, which allows you to build shared libraries that Ruby-FFI can load. (Also, anything else that can load shared libraries) Inspiration Filippo Valsorda has already written a very nice article on Building Python modules with Go 1.5 but I natur
36. 使い方(1) module LibC extend FFI::Library ffi_lib 'c' # FFI::Library::LIBC # int puts(char*) attach_function :puts, [:string], :int end LibC.puts "Hello!" 37. 使い方(2) 型 :short # 16bit int :int # 32bit int :long_long # 64bit int :long # long :float # float :double # double :string # NULL-terminated :pointer # pointer :void, :float, :double, :varargs, ... 38. 使い方(3) 型 列挙型/構造体/関数ポインタ enum :Status, [:
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く