- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 40 for Decompressor (0.14 sec)
-
src/archive/zip/register.go
func RegisterCompressor(method uint16, comp Compressor) { if _, dup := compressors.LoadOrStore(method, comp); dup { panic("compressor already registered") } } func compressor(method uint16) Compressor { ci, ok := compressors.Load(method) if !ok { return nil } return ci.(Compressor) } func decompressor(method uint16) Decompressor { di, ok := decompressors.Load(method) if !ok { return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 18:36:46 UTC 2023 - 3.7K bytes - Viewed (0) -
src/compress/zlib/reader.go
if checksum != adler32.Checksum(dict) { z.err = ErrDictionary return z.err } } if z.decompressor == nil { if haveDict { z.decompressor = flate.NewReaderDict(z.r, dict) } else { z.decompressor = flate.NewReader(z.r) } } else { z.decompressor.(flate.Resetter).Reset(z.r, dict) } z.digest = adler32.New() return nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 4.7K bytes - Viewed (0) -
src/compress/flate/inflate.go
if f.dict.availWrite() == 0 || f.copyLen > 0 { f.toRead = f.dict.readFlush() f.step = (*decompressor).copyData return } f.finishBlock() } func (f *decompressor) finishBlock() { if f.final { if f.dict.availRead() > 0 { f.toRead = f.dict.readFlush() } f.err = io.EOF } f.step = (*decompressor).nextBlock }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 20.4K bytes - Viewed (0) -
src/compress/gzip/gunzip.go
return hdr, noEOF(err) } digest := le.Uint16(z.buf[:2]) if digest != uint16(z.digest) { return hdr, ErrHeader } } z.digest = 0 if z.decompressor == nil { z.decompressor = flate.NewReader(z.r) } else { z.decompressor.(flate.Resetter).Reset(z.r, nil) } return hdr, nil } // Read implements [io.Reader], reading uncompressed bytes from its underlying [Reader].
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 13 23:20:03 UTC 2023 - 8.5K bytes - Viewed (0) -
src/compress/flate/example_test.go
} // A preset dictionary can be used to improve the compression ratio. // The downside to using a dictionary is that the compressor and decompressor // must agree in advance what dictionary to use. func Example_dictionary() { // The dictionary is a string of bytes. When compressing some input data, // the compressor will attempt to substitute substrings with matches found // in the dictionary. As such, the dictionary should only contain substrings
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Nov 12 18:42:35 UTC 2016 - 6.5K bytes - Viewed (0) -
src/compress/flate/inflate_test.go
f := NewReader(encodedNotByteReader).(*decompressor) bufioR, ok := f.r.(*bufio.Reader) if !ok { t.Fatalf("bufio.Reader should be created") } f.Reset(encodedNotByteReader, nil) if bufioR != f.r { t.Fatalf("bufio.Reader was not reused") } }) t.Run("BufferIsNotReusedWhenGotByteReader", func(t *testing.T) { f := NewReader(encodedNotByteReader).(*decompressor) if _, ok := f.r.(*bufio.Reader); !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 24 23:23:54 UTC 2023 - 3.3K bytes - Viewed (0) -
src/internal/zstd/fuzz_test.go
}) } // Fuzz test to verify that what we decompress is what we compress. // This isn't a great fuzz test because the fuzzer can't efficiently // explore the space of decompressor behavior, since it can't see // what the compressor is doing. But it's better than nothing. func FuzzDecompressor(f *testing.F) { zstd := findZstd(f) for _, test := range tests { f.Add([]byte(test.uncompressed)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 30 04:10:45 UTC 2024 - 4.5K bytes - Viewed (0) -
src/compress/flate/flate_test.go
// Initialize Huffman decoder to recognize "0". var h huffmanDecoder if !h.init([]int{1}) { t.Fatal("Failed to initialize Huffman decoder") } // Initialize decompressor with invalid Huffman coding. var f decompressor f.r = bytes.NewReader([]byte{0xff}) _, err := f.huffSym(&h) if err == nil { t.Fatal("Should have rejected invalid bit sequence") } } func TestInvalidBits(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 20 18:41:18 UTC 2020 - 11K bytes - Viewed (0) -
pkg/config/xds/filter_types.gen.go
_ "github.com/envoyproxy/go-control-plane/envoy/extensions/compression/brotli/compressor/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/compression/brotli/decompressor/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/compression/gzip/compressor/v3" _ "github.com/envoyproxy/go-control-plane/envoy/extensions/compression/gzip/decompressor/v3"
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sun Jun 02 02:48:23 UTC 2024 - 26.9K 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: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 13 23:40:13 UTC 2016 - 12.9K bytes - Viewed (0)