-
Notifications
You must be signed in to change notification settings - Fork 88
Closed
Description
Seriously broken! It doesn't even encrypt(!) due to a difference in how rubinius handles the memory for strings, apparently. I think for rubinius, we will will need to use MemoryPointer
s, not strings. Though it works for ruby and jruby, apparently.
In addition, the rbx version of ffi is missing some nice functions on FFI::MemoryPointer
like put_bytes
and get_bytes
so you end up with constructions like:
m.put_array_of_uchar(0, msg.bytes.to_a)
# or ...
ct.get_array_of_uchar(0, ct.total).pack('c*')
Which is fixed in rbx-head, by the looks of things, but is broken even on rc-1.
Metadata
Metadata
Assignees
Labels
No labels