github.com/HaHadaxigua/yaegi@v1.0.1/stdlib/go1_17_image_png.go (about)

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