Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for eof (0.16 sec)

  1. src/bufio/bufio_test.go

    		t.Errorf(`Peek(4) on "abcd", EOF = %q, %v; want "abcd", nil`, string(s), err)
    	}
    	if n, err := buf.Read(p[0:5]); string(p[0:n]) != "abcd" || err != nil {
    		t.Fatalf("Read after peek = %q, %v; want abcd, EOF", p[0:n], err)
    	}
    	if n, err := buf.Read(p[0:1]); string(p[0:n]) != "" || err != io.EOF {
    		t.Fatalf(`second Read after peek = %q, %v; want "", EOF`, p[0:n], err)
    	}
    }
    
    type dataAndEOFReader string
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    		// Reading from an object but buffer size greater. - 8
    		{
    			volume, "myobject",
    			7, 8,
    			[]byte("world"),
    			io.ErrUnexpectedEOF,
    		},
    		// Seeking ahead returns io.EOF. - 9
    		{
    			volume, "myobject", 14, 1, nil, io.EOF,
    		},
    		// Empty volume name. - 10
    		{
    			"", "myobject", 14, 1, nil, errVolumeNotFound,
    		},
    		// Empty filename name. - 11
    		{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  3. cmd/bucket-handlers.go

    	)
    
    	maxParts := 1000
    	// Canonicalize the form values into http.Header.
    	formValues := make(http.Header)
    	for {
    		part, err := mp.NextRawPart()
    		if errors.Is(err, io.EOF) {
    			break
    		}
    		if err != nil {
    			apiErr := errorCodes.ToAPIErr(ErrMalformedPOSTRequest)
    			apiErr.Description = fmt.Sprintf("%s (%v)", apiErr.Description, err)
    			writeErrorResponse(ctx, w, apiErr, r.URL)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    	// Fetch buffer for I/O, returns from the pool if not allocates a new one and returns.
    	var buffer []byte
    	switch size := data.Size(); {
    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size >= fi.Erasure.BlockSize:
    		buffer = globalBytePoolCap.Load().Get()
    		defer globalBytePoolCap.Load().Put(buffer)
    	case size < fi.Erasure.BlockSize:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  5. cmd/xl-storage.go

    	return buf, err
    }
    
    // ReadFile reads exactly len(buf) bytes into buf. It returns the
    // number of bytes copied. The error is EOF only if no bytes were
    // read. On return, n == len(buf) if and only if err == nil. n == 0
    // for io.EOF.
    //
    // If an EOF happens after reading some but not all the bytes,
    // ReadFile returns ErrUnexpectedEOF.
    //
    // If the BitrotVerifier is not nil or not verified ReadFile
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	os.RemoveAll(testServer.Root)
    	for _, ep := range testServer.Disks {
    		for _, disk := range ep.Endpoints {
    			os.RemoveAll(disk.Path)
    		}
    	}
    }
    
    // Truncate request to simulate unexpected EOF for a request signed using streaming signature v4.
    func truncateChunkByHalfSigv4(req *http.Request) (*http.Request, error) {
    	bufReader := bufio.NewReader(req.Body)
    	hexChunkSize, chunkSignature, err := readChunkLine(bufReader)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  7. src/cmd/cgo/gcc.go

    	last := nargs[li]
    	nargs[li] = "-O0"
    	nargs = append(nargs, extraArgs...)
    	nargs = append(nargs, last)
    
    	if *debugGcc {
    		fmt.Fprintf(os.Stderr, "$ %s <<EOF\n", strings.Join(nargs, " "))
    		os.Stderr.Write(stdin)
    		fmt.Fprint(os.Stderr, "EOF\n")
    	}
    	stdout, stderr, _ := run(stdin, nargs)
    	if *debugGcc {
    		os.Stderr.Write(stdout)
    		os.Stderr.Write(stderr)
    	}
    	return string(stderr)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  8. cmd/peer-rest-server.go

    	connectTime := time.Now()
    	ctx := newContext(r, w, "DevNull")
    	for {
    		n, err := io.CopyN(xioutil.Discard, r.Body, 128*humanize.KiByte)
    		atomic.AddUint64(&globalNetPerfRX.RX, uint64(n))
    		if err != nil && err != io.EOF {
    			// If there is a disconnection before globalNetPerfMinDuration (we give a margin of error of 1 sec)
    			// would mean the network is not stable. Logging here will help in debugging network issues.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    		opts.BaseDir = prefix
    		opts.Transient = true
    	}
    
    	// set bucket metadata in opts
    	opts.setBucketMeta(ctx)
    
    	merged, err := z.listPath(ctx, &opts)
    	if err != nil && err != io.EOF {
    		if !isErrBucketNotFound(err) {
    			storageLogOnceIf(ctx, err, "erasure-list-objects-path-"+bucket)
    		}
    		return loi, toObjectErr(err, bucket)
    	}
    	defer merged.truncate(0) // Release when returning
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

                        this.socket.close();
                    }
                    catch ( IOException ioe ) {
                        log.debug("Failed to close socket", ioe);
                    }
                    throw new SmbException("EOF during NetBIOS session request");
                }
                switch ( this.sbuf[ 0 ] & 0xFF ) {
                case SessionServicePacket.POSITIVE_SESSION_RESPONSE:
                    if ( log.isDebugEnabled() ) {
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
Back to top