Module: RubyHToGo::TypeHelper
- Included in:
- ArgumentDefinition, TyperefDefinition
- Defined in:
- _tools/ruby_h_to_go/lib/ruby_h_to_go/type_helper.rb
Overview
type attribute helper
Instance Method Summary collapse
-
#cast_to_cgo_type ⇒ String
Cast C type to cgo type.
- #ruby_c_type_to_go_type(pos: nil, pointer: nil, pointer_length: 0) ⇒ String
Instance Method Details
#cast_to_cgo_type ⇒ String
Cast C type to cgo type. (Used in wrapper function)
16 17 18 |
# File '_tools/ruby_h_to_go/lib/ruby_h_to_go/type_helper.rb', line 16 def cast_to_cgo_type GoUtil.cast_to_cgo_type(type) end |
#ruby_c_type_to_go_type(pos: nil, pointer: nil, pointer_length: 0) ⇒ String
10 11 12 |
# File '_tools/ruby_h_to_go/lib/ruby_h_to_go/type_helper.rb', line 10 def ruby_c_type_to_go_type(pos: nil, pointer: nil, pointer_length: 0) GoUtil.ruby_c_type_to_go_type(type, pos:, pointer:, pointer_length:) end |