Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for compressors (0.18 sec)

  1. src/archive/zip/writer.go

    }
    
    // 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 Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Sep 23 14:32:33 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  2. cmd/object-api-utils.go

    		return sealETag(key, md5sumcurr)
    	}
    	return fn
    }
    
    // compressOpts are the options for writing compressed data.
    var compressOpts []s2.WriterOption
    
    func init() {
    	if runtime.GOARCH == "amd64" {
    		// On amd64 we have assembly and can use stronger compression.
    		compressOpts = append(compressOpts, s2.WriterBetterCompression())
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
  3. src/archive/zip/reader.go

    func (r *Reader) RegisterDecompressor(method uint16, dcomp Decompressor) {
    	if r.decompressors == nil {
    		r.decompressors = make(map[uint16]Decompressor)
    	}
    	r.decompressors[method] = dcomp
    }
    
    func (r *Reader) decompressor(method uint16) Decompressor {
    	dcomp := r.decompressors[method]
    	if dcomp == nil {
    		dcomp = decompressor(method)
    	}
    	return dcomp
    }
    
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  4. internal/s3select/select.go

    			s3Select.progressReader.Close()
    
    			var stErr bzip2.StructuralError
    			if errors.As(err, &stErr) {
    				return errInvalidCompression(err, s3Select.Input.CompressionType)
    			}
    			// Test these compressor errors
    			errs := []error{
    				gzip.ErrHeader, gzip.ErrChecksum,
    				s2.ErrCorrupt, s2.ErrUnsupported, s2.ErrCRC,
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top