Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for decompressor (0.08 sec)

  1. 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: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Oct 13 18:36:46 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. src/archive/zip/reader.go

    // RegisterDecompressor registers or overrides a custom decompressor for a
    // specific method ID. If a decompressor for a given method is not found,
    // [Reader] will default to looking up the decompressor at the package level.
    func (r *Reader) RegisterDecompressor(method uint16, dcomp Decompressor) {
    	if r.decompressors == nil {
    		r.decompressors = make(map[uint16]Decompressor)
    	}
    	r.decompressors[method] = dcomp
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Mar 11 22:19:38 UTC 2025
    - 28.4K bytes
    - Viewed (0)
  3. 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 Sep 09 11:13:09 UTC 2025
    - Last Modified: Wed Jan 13 23:40:13 UTC 2016
    - 12.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/compression/CompressionService.java

        /**
         * Decompresses data that was compressed with the specified algorithm.
         *
         * @param compressedData the compressed data
         * @param algorithm the compression algorithm that was used
         * @return the decompressed data
         * @throws CIFSException if decompression fails
         */
        byte[] decompress(byte[] compressedData, int algorithm) throws CIFSException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/compression/DefaultCompressionService.java

                throws CIFSException {
            byte[] decompressed = decompress(compressedData, offset, length, algorithm);
            if (outputBuffer.length - outputOffset < decompressed.length) {
                throw new CIFSException("Output buffer too small");
            }
            System.arraycopy(decompressed, 0, outputBuffer, outputOffset, decompressed.length);
            return decompressed.length;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/compression/DefaultCompressionServiceTest.java

            assertArrayEquals(testData, compressed);
    
            byte[] decompressed = compressionService.decompress(compressed, CompressionService.COMPRESSION_NONE);
            assertArrayEquals(testData, decompressed);
        }
    
        @Test
        @DisplayName("Test LZ77 compression and decompression")
        public void testLZ77Compression() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

          val response = chain.proceed(request)
    
          decompress(response)
        } else {
          chain.proceed(chain.request())
        }
    
      /**
       * Returns a decompressed copy of the Response, typically via a streaming Source.
       * If no known decompression or the response is not compressed, returns the response unmodified.
       */
      internal fun decompress(response: Response): Response {
        if (!response.promisesBody()) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  8. okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt

            header("Content-Encoding", "zstd")
          }
    
        val decompressed = zstdInterceptor.decompress(response)
        assertThat(decompressed.header("Content-Encoding")).isNull()
    
        assertFailsWith<IOException> {
          decompressed.body.string()
        }.also { ioe ->
          assertThat(ioe).hasMessage("zstd decompress failed: Unknown frame descriptor")
        }
      }
    
      @Test
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. docs/en/docs/how-to/custom-request-and-route.md

    ///
    
    First, we create a `GzipRequest` class, which will overwrite the `Request.body()` method to decompress the body in the presence of an appropriate header.
    
    If there's no `gzip` in the header, it will not try to decompress the body.
    
    That way, the same route class can handle gzip compressed or uncompressed requests.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  10. src/archive/zip/writer.go

    	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 {
    		w.compressors = make(map[uint16]Compressor)
    	}
    	w.compressors[method] = comp
    }
    
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Tue Jan 28 04:20:09 UTC 2025
    - 19.4K bytes
    - Viewed (0)
Back to top