예제 #1
0
func (self Status) String() string {
	return C.GoString(C.cairo_status_to_string(C.cairo_status_t(self)))
}
예제 #2
0
파일: backend.go 프로젝트: mrlauer/pdfmaker
//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)
}