Beispiel #1
0
func RbGoString(str C.VALUE) string {
	C.rb_string_value(&str)
	return C.GoStringN(C.rstring_ptr(str), C.rstring_len(str))
}
Beispiel #2
0
func rstringToGostring(rstring C.VALUE) string {
	return C.GoStringN(C.rstring_ptr(rstring), C.rstring_len(rstring))
}