Exemplo n.º 1
0
func RbGoString(str C.VALUE) string {
	C.rb_string_value(&str)
	return C.GoStringN(C.rstring_ptr(str), C.rstring_len(str))
}
Exemplo n.º 2
0
Arquivo: gorby.go Projeto: burke/gorby
func rstringToGostring(rstring C.VALUE) string {
	return C.GoStringN(C.rstring_ptr(rstring), C.rstring_len(rstring))
}