MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / SetBlob

Method SetBlob

vips/vips.go:547–550  ·  view source on GitHub ↗
(name string, value []byte)

Source from the content-addressed store, hash-verified

545}
546
547func (img *Image) SetBlob(name string, value []byte) {
548 defer runtime.KeepAlive(value)
549 C.vips_image_set_blob_copy(img.VipsImage, cachedCString(name), unsafe.Pointer(&value[0]), C.size_t(len(value)))
550}
551
552func (img *Image) CastUchar() error {
553 var tmp *C.VipsImage

Callers 1

stripMetadataMethod · 0.80

Calls 1

cachedCStringFunction · 0.85

Tested by

no test coverage detected