- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for EncoderBuffer (0.26 sec)
-
src/image/png/writer.go
// EncoderBufferPool is an interface for getting and returning temporary // instances of the [EncoderBuffer] struct. This can be used to reuse buffers // when encoding multiple images. type EncoderBufferPool interface { Get() *EncoderBuffer Put(*EncoderBuffer) } // EncoderBuffer holds the buffers used for encoding PNG images. type EncoderBuffer encoder type encoder struct { enc *Encoder w io.Writer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 11 17:08:05 UTC 2024 - 15.4K bytes - Viewed (0) -
src/image/png/writer_test.go
b.ReportAllocs() b.ResetTimer() for i := 0; i < b.N; i++ { Encode(io.Discard, img) } } type pool struct { b *EncoderBuffer } func (p *pool) Get() *EncoderBuffer { return p.b } func (p *pool) Put(b *EncoderBuffer) { p.b = b } func BenchmarkEncodeGrayWithBufferPool(b *testing.B) { img := image.NewGray(image.Rect(0, 0, 640, 480)) e := Encoder{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 14 08:14:05 UTC 2022 - 8.9K bytes - Viewed (0) -
api/go1.9.txt
pkg image/png, type Encoder struct, BufferPool EncoderBufferPool pkg image/png, type EncoderBuffer struct pkg image/png, type EncoderBufferPool interface { Get, Put } pkg image/png, type EncoderBufferPool interface, Get() *EncoderBuffer pkg image/png, type EncoderBufferPool interface, Put(*EncoderBuffer) pkg math/big, method (*Int) IsInt64() bool pkg math/big, method (*Int) IsUint64() bool pkg math/big, type Word uint
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 04 20:20:20 UTC 2021 - 10.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"DecodeConfig", Func, 0}, {"DefaultCompression", Const, 4}, {"Encode", Func, 0}, {"Encoder", Type, 4}, {"Encoder.BufferPool", Field, 9}, {"Encoder.CompressionLevel", Field, 4}, {"EncoderBuffer", Type, 9}, {"EncoderBufferPool", Type, 9}, {"FormatError", Type, 0}, {"NoCompression", Const, 4}, {"UnsupportedError", Type, 0}, }, "index/suffixarray": { {"(*Index).Bytes", Method, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)