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