Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Returning complex objects. #11

Open
kirel opened this issue Feb 2, 2016 · 0 comments
Open

Returning complex objects. #11

kirel opened this issue Feb 2, 2016 · 0 comments

Comments

@kirel
Copy link

kirel commented Feb 2, 2016

Hi, it'e me again. I'm not sure this is the right place for my question but I'll just go ahead and ask. I've been playing around with this library extensively and I am running into trouble when returning more complex objects.

That bites me already when returning something like [0] from a function. The ffi (i.e. in Ruby) assumes it encountered the end of the string when it finds null somewhere along the way which breaks deserialization (at least I think that's what's happening). I don't really see a viable workaround. I would want to return the size of the message along with the message but I have no idea how to do that. Are there other workarounds? Am I completely missing a point here?

Thanks for your time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant