Class: Clang::String
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Clang::String
- Defined in:
- lib/ffi_gen/clang.rb,
lib/ffi_gen.rb
Overview
A character string.
The c CXString type is used to return strings from the interface when the ownership of that string might different from one call to the next. Use c clang_getCString() to retrieve the string data and, once finished with the string data, call c clang_disposeString() to free the string.
Fields:
- :data
-
(FFI::Pointer(*Void))
- :private_flags
-
(Integer)
Instance Method Summary collapse
Instance Method Details
#to_s ⇒ Object
15 16 17 |
# File 'lib/ffi_gen.rb', line 15 def to_s Clang.get_c_string self end |
#to_s_and_dispose ⇒ Object
19 20 21 22 23 |
# File 'lib/ffi_gen.rb', line 19 def to_s_and_dispose str = to_s Clang.dispose_string self str end |