func (self Status) String() string {
	return C.GoString(C.cairo_status_to_string(C.cairo_status_t(self)))
}
Exemple #2
0
//export GoWriteToStream
func GoWriteToStream(closure unsafe.Pointer, data *C.uchar, length C.uint) C.cairo_status_t {
	stream := *(*io.Writer)(closure)
	bytes := C.GoBytes(unsafe.Pointer(data), C.int(length))
	stream.Write(bytes)
	return C.cairo_status_t(0)
}