Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ErrFormat (0.21 sec)

  1. src/archive/zip/reader.go

    				if len(fieldBuf) < 8 {
    					return ErrFormat
    				}
    				f.UncompressedSize64 = fieldBuf.uint64()
    			}
    			if needCSize {
    				needCSize = false
    				if len(fieldBuf) < 8 {
    					return ErrFormat
    				}
    				f.CompressedSize64 = fieldBuf.uint64()
    			}
    			if needHeaderOffset {
    				needHeaderOffset = false
    				if len(fieldBuf) < 8 {
    					return ErrFormat
    				}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Sat Aug 03 01:05:29 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	_, err := NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("zeroes: error=%v, want %v", err, ErrFormat)
    	}
    
    	// repeated directoryEndSignatures
    	sig := make([]byte, 4)
    	binary.LittleEndian.PutUint32(sig, directoryEndSignature)
    	for i := 0; i < size-4; i += 4 {
    		copy(b[i:i+4], sig)
    	}
    	_, err = NewReader(bytes.NewReader(b), size)
    	if err != ErrFormat {
    		t.Errorf("sigs: error=%v, want %v", err, ErrFormat)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  3. api/go1.txt

    pkg archive/zip, type Reader struct, File []*File
    pkg archive/zip, type Writer struct
    pkg archive/zip, var ErrAlgorithm error
    pkg archive/zip, var ErrChecksum error
    pkg archive/zip, var ErrFormat error
    pkg bufio, func NewReadWriter(*Reader, *Writer) *ReadWriter
    pkg bufio, func NewReader(io.Reader) *Reader
    pkg bufio, func NewReaderSize(io.Reader, int) *Reader
    pkg bufio, func NewWriter(io.Writer) *Writer
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Aug 14 18:58:28 UTC 2013
    - 1.7M bytes
    - Viewed (0)
Back to top