From: spamblock@... Date: 2004-10-20T20:49:24+09:00 Subject: How to export binary string from C to ruby? Hi, I'd like to write a ruby method in C, which passes an arbitrary byte string as a result back to ruby. All functions I found (like rb_str_new2 ) use just a pointer and assume the string to be 0-terminated. Any way to convert a buffer into a ruby string based on pointer and length? regards Hadmut