From: se gm Date: 2013-04-08T11:06:03+09:00 Subject: Mapping string data ptr to buffer in ffi I'm trying to implement some "shared memory" in Ruby, but I'm not sure how to declare it properly with ffi. The idea is to map the read-only (in Ruby) string contents(by passing a data ptr) to external C library threads so that they would write some data to it. Could you point out the proper way to do it ? Thanks in advance -- Posted via http://www.ruby-forum.com/.