示例#1
0
文件: wrapper.go 项目: nurse/gohttp
func RbGoString(str C.VALUE) string {
	C.rb_string_value(&str)
	return C.GoStringN(C.rstring_ptr(str), C.rstring_len(str))
}
示例#2
0
文件: gorby.go 项目: burke/gorby
func rstringToGostring(rstring C.VALUE) string {
	return C.GoStringN(C.rstring_ptr(rstring), C.rstring_len(rstring))
}