- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for RegisterCompressor (0.12 sec)
-
src/archive/zip/register.go
if _, dup := decompressors.LoadOrStore(method, dcomp); dup { panic("decompressor already registered") } } // RegisterCompressor registers custom compressors for a specified method ID. // The common methods [Store] and [Deflate] are built in. func RegisterCompressor(method uint16, comp Compressor) { if _, dup := compressors.LoadOrStore(method, comp); dup { panic("compressor already registered") } }
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 3.7K bytes - Viewed (0) -
src/archive/zip/example_test.go
// Create a buffer to write our archive to. buf := new(bytes.Buffer) // Create a new zip archive. w := zip.NewWriter(buf) // Register a custom Deflate compressor. w.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) { return flate.NewWriter(out, flate.BestCompression) }) // Proceed to add files to w.
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 27 00:22:03 UTC 2016 - 2K bytes - Viewed (0) -
src/archive/zip/writer.go
if err != nil { return err } _, err = io.Copy(fw, r) return err } // RegisterCompressor registers or overrides a custom compressor for a specific // method ID. If a compressor for a given method is not found, [Writer] will // default to looking up the compressor at the package level. func (w *Writer) RegisterCompressor(method uint16, comp Compressor) { if w.compressors == nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Mon Sep 23 14:32:33 UTC 2024 - 19.4K bytes - Viewed (0) -
api/go1.6.txt
pkg archive/zip, method (*ReadCloser) RegisterDecompressor(uint16, Decompressor) pkg archive/zip, method (*Reader) RegisterDecompressor(uint16, Decompressor) pkg archive/zip, method (*Writer) RegisterCompressor(uint16, Compressor) pkg bufio, method (*Scanner) Buffer([]uint8, int) pkg bufio, var ErrFinalToken error pkg crypto/tls, const TLS_RSA_WITH_AES_128_GCM_SHA256 = 156 pkg crypto/tls, const TLS_RSA_WITH_AES_128_GCM_SHA256 uint16
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Wed Jan 13 23:40:13 UTC 2016 - 12.9K bytes - Viewed (0) -
api/go1.2.txt
pkg archive/zip, func RegisterCompressor(uint16, Compressor) pkg archive/zip, func RegisterDecompressor(uint16, Decompressor) pkg archive/zip, method (*File) DataOffset() (int64, error) pkg archive/zip, type Compressor func(io.Writer) (io.WriteCloser, error) pkg archive/zip, type Decompressor func(io.Reader) io.ReadCloser pkg bufio, method (*Reader) Reset(io.Reader) pkg bufio, method (*Writer) Reset(io.Writer) pkg compress/flate, method (*Writer) Reset(io.Writer)
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Oct 18 04:36:59 UTC 2013 - 1.9M bytes - Viewed (0)