Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for readRaw (0.17 sec)

  1. src/archive/zip/reader.go

    // findBodyOffset does the minimum work to verify the file has a header
    // and returns the file body offset.
    func (f *File) findBodyOffset() (int64, error) {
    	var buf [fileHeaderLen]byte
    	if _, err := f.zipr.ReadAt(buf[:], f.headerOffset); err != nil {
    		return 0, err
    	}
    	b := readBuf(buf[:])
    	if sig := b.uint32(); sig != fileHeaderSignature {
    		return 0, ErrFormat
    	}
    	b = b[22:] // skip over most of the header
    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. cmd/sftp-server-driver.go

    			minio.PutObjectOptions{DisableContentSha256: true},
    		)
    		return err
    	}
    
    	return NotImplemented{}
    }
    
    type listerAt []os.FileInfo
    
    // Modeled after strings.Reader's ReadAt() implementation
    func (f listerAt) ListAt(ls []os.FileInfo, offset int64) (int, error) {
    	var n int
    	if offset >= int64(len(f)) {
    		return 0, io.EOF
    	}
    	n = copy(ls, f[offset:])
    	if n < len(ls) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Jun 05 07:51:13 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. src/archive/zip/reader_test.go

    	var z *Reader
    	var err error
    	var raw []byte
    	if zt.Source != nil {
    		rat, size := zt.Source()
    		z, err = NewReader(rat, size)
    		raw = make([]byte, size)
    		if _, err := rat.ReadAt(raw, 0); err != nil {
    			t.Errorf("ReadAt error=%v", err)
    			return
    		}
    	} else {
    		path := filepath.Join("testdata", zt.Name)
    		if zt.Obscured {
    			tf, err := obscuretestdata.DecodeToTempFile(path)
    			if err != nil {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  4. api/go1.3.txt

    pkg debug/plan9obj, method (*File) Symbols() ([]Sym, error)
    pkg debug/plan9obj, method (*Section) Data() ([]uint8, error)
    pkg debug/plan9obj, method (*Section) Open() io.ReadSeeker
    pkg debug/plan9obj, method (Section) ReadAt([]uint8, int64) (int, error)
    pkg debug/plan9obj, type File struct
    pkg debug/plan9obj, type File struct, Sections []*Section
    pkg debug/plan9obj, type File struct, embedded FileHeader
    pkg debug/plan9obj, type FileHeader struct
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Mon Jun 02 02:45:00 UTC 2014
    - 117K bytes
    - Viewed (0)
  5. api/go1.txt

    pkg debug/macho, method (LoadCmd) GoString() string
    pkg debug/macho, method (LoadCmd) String() string
    pkg debug/macho, method (Section) ReadAt([]uint8, int64) (int, error)
    pkg debug/macho, method (Segment) Raw() []uint8
    pkg debug/macho, method (Segment) ReadAt([]uint8, int64) (int, error)
    pkg debug/macho, method (Symtab) Raw() []uint8
    pkg debug/macho, type Cpu uint32
    pkg debug/macho, type Dylib struct
    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