Example #1
0
func RbGoString(str C.VALUE) string {
	C.rb_string_value(&str)
	return C.GoStringN(C.rstring_ptr(str), C.rstring_len(str))
}
Example #2
0
File: gorby.go Project: burke/gorby
func rstringToGostring(rstring C.VALUE) string {
	return C.GoStringN(C.rstring_ptr(rstring), C.rstring_len(rstring))
}