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

Struct imageDataAsyncBuffer

imagedata/image_data.go:42–48  ·  view source on GitHub ↗

imageDataAsyncBuffer is a struct that implements the ImageData interface backed by an AsyncBuffer

Source from the content-addressed store, hash-verified

40
41// imageDataAsyncBuffer is a struct that implements the ImageData interface backed by an AsyncBuffer
42type imageDataAsyncBuffer struct {
43 b *asyncbuffer.AsyncBuffer
44 format imagetype.Type
45 desc string
46 cancel []context.CancelFunc
47 cancelOnce sync.Once
48}
49
50// Close closes the image data and releases any resources held by it
51func (d *imageDataBytes) Close() error {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected