/
go1_16_image_png.go
44 lines (36 loc) · 1.56 KB
/
go1_16_image_png.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Code generated by 'yaegi extract image/png'. DO NOT EDIT.
// +build go1.16,!go1.17
package stdlib
import (
"image/png"
"reflect"
)
func init() {
Symbols["image/png/png"] = map[string]reflect.Value{
// function, constant and variable definitions
"BestCompression": reflect.ValueOf(png.BestCompression),
"BestSpeed": reflect.ValueOf(png.BestSpeed),
"Decode": reflect.ValueOf(png.Decode),
"DecodeConfig": reflect.ValueOf(png.DecodeConfig),
"DefaultCompression": reflect.ValueOf(png.DefaultCompression),
"Encode": reflect.ValueOf(png.Encode),
"NoCompression": reflect.ValueOf(png.NoCompression),
// type definitions
"CompressionLevel": reflect.ValueOf((*png.CompressionLevel)(nil)),
"Encoder": reflect.ValueOf((*png.Encoder)(nil)),
"EncoderBuffer": reflect.ValueOf((*png.EncoderBuffer)(nil)),
"EncoderBufferPool": reflect.ValueOf((*png.EncoderBufferPool)(nil)),
"FormatError": reflect.ValueOf((*png.FormatError)(nil)),
"UnsupportedError": reflect.ValueOf((*png.UnsupportedError)(nil)),
// interface wrapper definitions
"_EncoderBufferPool": reflect.ValueOf((*_image_png_EncoderBufferPool)(nil)),
}
}
// _image_png_EncoderBufferPool is an interface wrapper for EncoderBufferPool type
type _image_png_EncoderBufferPool struct {
IValue interface{}
WGet func() *png.EncoderBuffer
WPut func(a0 *png.EncoderBuffer)
}
func (W _image_png_EncoderBufferPool) Get() *png.EncoderBuffer { return W.WGet() }
func (W _image_png_EncoderBufferPool) Put(a0 *png.EncoderBuffer) { W.WPut(a0) }