Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add type definitions for :buffer_in and :buffer_out #2099

wants to merge 1 commit into from

2 participants


Not sure if specs should be added here. :buffer_in and :buffer_out are just another names of the same type (pointer), i.e. go into the same class of equivalence.

Rubinius actually has specs which use :buffer_in and :buffer_out, but those specs also rely on FFI::Buffer, which is not implemented yet.


Please hold off on more FFI PRs. I'm going to work on getting the ffi gem to run on Rubinius.


Ok, good. Let me know if you need help with that.


We now bundle a 1.2.0 version of the FFI gem, however, there is a bug in RVM that omits the pre-installed gems. So if using RVM, use the recently released 1.3.0 FFI gem which builds correctly on Rubinius.

@brixen brixen closed this

That's great, thank you for informing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 0 deletions.
  1. +2 −0  kernel/platform/ffi.rb
2  kernel/platform/ffi.rb
@@ -129,6 +129,8 @@ def errno
# Converts a pointer to opaque data
add_typedef TYPE_PTR, :pointer
+ add_typedef TYPE_PTR, :buffer_in
+ add_typedef TYPE_PTR, :buffer_out
# For when a function has no return value
add_typedef TYPE_VOID, :void
Something went wrong with that request. Please try again.