Sha256: 866a7e1cfff0a2d0ac2ee56132540523d928ddce751ebc02bfaac3f23ea874d2
Contents?: true
Size: 561 Bytes
Versions: 5
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true # Released under the MIT License. # Copyright, 2013-2024, by Samuel Williams. module FFI module Clang module Lib class CXString < FFI::Struct layout( :data, :pointer, :private_flags, :uint ) end attach_function :get_string, :clang_getCString, [CXString.by_value], :string attach_function :dispose_string, :clang_disposeString, [CXString.by_value], :void def self.extract_string(cxstring) result = get_string(cxstring) dispose_string cxstring return result end end end end
Version data entries
5 entries across 5 versions & 1 rubygems