Class: FFI::MemoryPointer
- Inherits:
-
Object
- Object
- FFI::MemoryPointer
- Defined in:
- lib/childprocess/unix/lib.rb
Overview
missing on rubinius
Class Method Summary collapse
Class Method Details
.from_string(str) ⇒ Object
164 165 166 167 168 169 |
# File 'lib/childprocess/unix/lib.rb', line 164 def self.from_string(str) ptr = new(1, str.bytesize + 1) ptr.write_string("#{str}\0") ptr end |