Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 47 of 47 for LimitReader (0.12 sec)

  1. cmd/storage-rest-server.go

    			// Block of data
    			var tmp [4]byte
    			_, err := io.ReadFull(respBody, tmp[:])
    			if err != nil {
    				return err
    			}
    			length := binary.LittleEndian.Uint32(tmp[:])
    			n, err := io.CopyBuffer(w, io.LimitReader(respBody, int64(length)), buf)
    			if err != nil {
    				return err
    			}
    			if n != int64(length) {
    				return io.ErrUnexpectedEOF
    			}
    			continue
    		case 32:
    			continue
    		default:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  2. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	tags, err := tags.ParseBucketXML(io.LimitReader(r.Body, r.ContentLength))
    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		apiErr.Description = err.Error()
    		writeErrorResponse(ctx, w, apiErr, r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 12:24:04 UTC 2024
    - 63.4K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    	)
    
    	var objectSize int64
    	for _, partInfo := range objInfo.Parts {
    		if isSSEC {
    			hr, err = hash.NewReader(ctx, io.LimitReader(r, partInfo.Size), partInfo.Size, "", "", partInfo.ActualSize)
    		} else {
    			hr, err = hash.NewReader(ctx, io.LimitReader(r, partInfo.ActualSize), partInfo.ActualSize, "", "", partInfo.ActualSize)
    		}
    		if err != nil {
    			return err
    		}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    	}
    	defer gr.Close()
    
    	// rehydrate the parts back on disk as per the original xl.meta prior to transition
    	for _, partInfo := range oi.Parts {
    		hr, err := hash.NewReader(ctx, io.LimitReader(gr, partInfo.Size), partInfo.Size, "", "", partInfo.Size)
    		if err != nil {
    			return setRestoreHeaderFn(oi, err)
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  5. src/archive/zip/reader_test.go

    //		"os"
    //	)
    //
    //	type zeros struct{}
    //
    //	func (zeros) Read(b []byte) (int, error) {
    //		clear(b)
    //		return len(b), nil
    //	}
    //
    //	func main() {
    //		bigZip := makeZip("big.file", io.LimitReader(zeros{}, 1<<32-1))
    //		if err := os.WriteFile("/tmp/big.zip", bigZip, 0666); err != nil {
    //			log.Fatal(err)
    //		}
    //
    //		biggerZip := makeZip("big.zip", bytes.NewReader(bigZip))
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Jul 25 00:25:45 UTC 2024
    - 55.6K bytes
    - Viewed (0)
  6. cmd/object-handlers_test.go

    		readers := []io.Reader{}
    		cumulativeSum := int64(0)
    		for _, p := range oi.partLengths {
    			readers = append(readers, NewDummyDataGen(p, cumulativeSum))
    			cumulativeSum += p
    		}
    
    		refReader := io.LimitReader(ioutilx.NewSkipReader(io.MultiReader(readers...), off), length)
    		if ok, msg := cmpReaders(refReader, rec.Body); !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  7. api/go1.txt

    pkg index/suffixarray, method (*Index) Write(io.Writer) error
    pkg index/suffixarray, type Index struct
    pkg io, func Copy(Writer, Reader) (int64, error)
    pkg io, func CopyN(Writer, Reader, int64) (int64, error)
    pkg io, func LimitReader(Reader, int64) Reader
    pkg io, func MultiReader(...Reader) Reader
    pkg io, func MultiWriter(...Writer) Writer
    pkg io, func NewSectionReader(ReaderAt, int64, int64) *SectionReader
    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