From: se gm Date: 2013-04-08T18:22:25+09:00 Subject: Re: Mapping string data ptr to buffer in ffi > I think a better way would be to implement a Ruby class in C and provide > the information via a getter method which returns a new Ruby String and > internally uses proper synchronization to maintain thread safety. It would be too slow, the purpose is to avoid any extra operations (no memory copy operations at all, the string changes should be immediately visible in Ruby) regardless of thread safety issues, no setters or getters. -- Posted via http://www.ruby-forum.com/.