Skip to content

Library is broken on rubinius #4

@namelessjon

Description

@namelessjon

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 MemoryPointers, 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions