class FFI::StrPtrConverter

Returns a [ String, Pointer ] tuple so the C memory for the string can be freed

Public Class Methods

from_native(val, ctx) click to toggle source
# File lib/ffi/types.rb, line 128
def self.from_native(val, ctx)
  [ val.null? ? nil : val.get_string(0), val ]
end