Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for compression (0.28 sec)

  1. src/archive/zip/struct.go

    fields must be used instead.
    
    [ZIP specification]: https://support.pkware.com/pkzip/appnote
    */
    package zip
    
    import (
    	"io/fs"
    	"path"
    	"time"
    )
    
    // Compression methods.
    const (
    	Store   uint16 = 0 // no compression
    	Deflate uint16 = 8 // DEFLATE compressed
    )
    
    const (
    	fileHeaderSignature      = 0x04034b50
    	directoryHeaderSignature = 0x02014b50
    	directoryEndSignature    = 0x06054b50
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
  2. lib/time/mkzip.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    // Mkzip writes a zoneinfo.zip with the content of the current directory
    // and its subdirectories, with no compression, suitable for package time.
    //
    // Usage:
    //
    //	go run ../../mkzip.go ../../zoneinfo.zip
    //
    // We use this program instead of 'zip -0 -r ../../zoneinfo.zip *' to get
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  3. 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
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 04 14:28:57 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/archive/zip/example_test.go

    }
    
    func ExampleWriter_RegisterCompressor() {
    	// Override the default Deflate compressor with a higher compression level.
    
    	// 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) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 27 00:22:03 GMT 2016
    - 2K bytes
    - Viewed (0)
  5. src/archive/zip/reader.go

    	"strings"
    	"sync"
    	"time"
    )
    
    var zipinsecurepath = godebug.New("zipinsecurepath")
    
    var (
    	ErrFormat       = errors.New("zip: not a valid zip file")
    	ErrAlgorithm    = errors.New("zip: unsupported compression algorithm")
    	ErrChecksum     = errors.New("zip: checksum error")
    	ErrInsecurePath = errors.New("zip: insecure file path")
    )
    
    // A Reader serves content from a ZIP archive.
    type Reader struct {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 27.7K bytes
    - Viewed (0)
  6. 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 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  7. 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
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Jan 13 23:40:13 GMT 2016
    - 12.9K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg compress/flate, const BestCompression ideal-int
    pkg compress/flate, const BestSpeed ideal-int
    pkg compress/flate, const DefaultCompression ideal-int
    pkg compress/flate, const NoCompression ideal-int
    pkg compress/flate, func NewReader(io.Reader) io.ReadCloser
    pkg compress/flate, func NewReaderDict(io.Reader, []uint8) io.ReadCloser
    pkg compress/flate, func NewWriter(io.Writer, int) (*Writer, error)
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (1)
  9. api/go1.1.txt

    pkg compress/flate, const BestSpeed = 1
    pkg compress/flate, const DefaultCompression = -1
    pkg compress/flate, const NoCompression = 0
    pkg compress/gzip, const BestCompression = 9
    pkg compress/gzip, const BestSpeed = 1
    pkg compress/gzip, const DefaultCompression = -1
    pkg compress/gzip, const NoCompression = 0
    pkg compress/gzip, method (*Writer) Flush() error
    pkg compress/lzw, const LSB = 0
    pkg compress/lzw, const MSB = 1
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
  10. api/go1.4.txt

    pkg image/png, const BestSpeed CompressionLevel
    pkg image/png, const DefaultCompression = 0
    pkg image/png, const DefaultCompression CompressionLevel
    pkg image/png, const NoCompression = -1
    pkg image/png, const NoCompression CompressionLevel
    pkg image/png, method (*Encoder) Encode(io.Writer, image.Image) error
    pkg image/png, type CompressionLevel int
    pkg image/png, type Encoder struct
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 12 03:01:01 GMT 2014
    - 34K bytes
    - Viewed (0)
Back to top