Class: FFIGen::Clang::String

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/ffi_gen/clang.rb,
lib/ffi_gen.rb

Overview

(Not documented)

Fields:

:data

(FFI::Pointer(*Void))

:private_flags

(Integer)

Instance Method Summary collapse

Instance Method Details

#to_sObject



36
37
38
# File 'lib/ffi_gen.rb', line 36

def to_s
  Clang.get_c_string self
end

#to_s_and_disposeObject



40
41
42
43
44
# File 'lib/ffi_gen.rb', line 40

def to_s_and_dispose
  str = to_s
  Clang.dispose_string self
  str
end