// Returns the ImageMagick quantum range as a string constant. func GetQuantumRange() (string, uint) { cst := C.size_t(0) csq := C.MagickGetQuantumRange(&cst) return C.GoString(csq), uint(cst) }
// Returns the ImageMagick quantum range as a string constant. func GetQuantumRange() (string, uint) { cst := C.size_t(0) csq := C.MagickGetQuantumRange(&cst) defer C.free(unsafe.Pointer(csq)) return C.GoString(csq), uint(cst) }