Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 186 for gwrite (0.11 sec)

  1. cmd/xl-storage.go

    		return err
    	}
    
    	n, err := w.Write(b)
    	if err != nil {
    		w.Close()
    		return err
    	}
    
    	if n != len(b) {
    		w.Close()
    		return io.ErrShortWrite
    	}
    
    	// Dealing with error returns from close() - 'man 2 close'
    	//
    	// A careful programmer will check the return value of close(), since it is quite possible that
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/Futures.java

      //    visible to done(). This is because there is no happens before edge between the write and a
      //    (hypothetical) unsafe read by our caller. Note: adding 'volatile' does not fix this issue,
      //    it would just add an edge such that if done() observed non-null, then it would also
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 64.1K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportImpl.java

            if ( log.isTraceEnabled() ) {
                log.trace(req.toString());
                log.trace(Hexdump.toHexString(this.sbuf, 4, n));
            }
    
            this.out.write(this.sbuf, 0, 4 + n);
            this.out.flush();
            log.trace("Wrote negotiate request");
            return n;
        }
    
    
        /**
         * @throws SocketException
         * @throws IOException
         */
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Wed Jan 18 23:47:00 UTC 2023
    - 67K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        // Use a 2 MiB body so the disconnect won't happen until the client has read some data.
        val responseBodySize = 2 * 1024 * 1024 // 2 MiB
        server.enqueue(
          MockResponse.Builder()
            .body(Buffer().write(ByteArray(responseBodySize)))
            .socketPolicy(DisconnectDuringResponseBody)
            .build(),
        )
        val call =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 56.9K bytes
    - Viewed (0)
  5. src/cmd/dist/build.go

    			Broken:       broken[p],
    		})
    	}
    	out, err := json.MarshalIndent(results, "", "\t")
    	if err != nil {
    		fatalf("json marshal error: %v", err)
    	}
    	if _, err := os.Stdout.Write(out); err != nil {
    		fatalf("write failed: %v", err)
    	}
    }
    
    func setNoOpt() {
    	for _, gcflag := range strings.Split(gogcflags, " ") {
    		if gcflag == "-N" || gcflag == "-l" {
    			noOpt = true
    			break
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 18:34:40 UTC 2024
    - 54K bytes
    - Viewed (0)
  6. src/encoding/xml/marshal_test.go

    type limitedBytesWriter struct {
    	w      io.Writer
    	remain int // until writes fail
    }
    
    func (lw *limitedBytesWriter) Write(p []byte) (n int, err error) {
    	if lw.remain <= 0 {
    		println("error")
    		return 0, errors.New("write limit hit")
    	}
    	if len(p) > lw.remain {
    		p = p[:lw.remain]
    		n, _ = lw.w.Write(p)
    		lw.remain = 0
    		return n, errors.New("write limit hit")
    	}
    	n, err = lw.w.Write(p)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  7. src/runtime/traceback.go

    		// innermost frame, that the SPWRITE function voluntarily preempted itself on entry
    		// during the stack growth check. In that case, the function has
    		// not yet had a chance to do any writes to SP and is safe to unwind.
    		// isAsyncSafePoint does not allow assembly functions to be async preempted,
    		// and preemptPark double-checks that SPWRITE functions are not async preempted.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  8. cmd/erasure-healing_test.go

    	if !fileInfoPreHeal.Equals(fileInfoPostHeal) {
    		t.Fatal("HealObject failed")
    	}
    
    	err = os.RemoveAll(path.Join(fsDirs[0], bucket, object, "xl.meta"))
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// Write xl.meta with different modtime to simulate the case where a disk had
    	// gone down when an object was replaced by a new object.
    	fileInfoOutDated := fileInfoPreHeal
    	fileInfoOutDated.ModTime = time.Now()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 49K bytes
    - Viewed (0)
  9. src/cmd/go/internal/modload/init.go

    	if !dirty && cfg.CmdName != "mod tidy" {
    		// The go.mod file has the same semantic content that it had before
    		// (but not necessarily the same exact bytes).
    		// Don't write go.mod, but write go.sum in case we added or trimmed sums.
    		// 'go mod init' shouldn't write go.sum, since it will be incomplete.
    		if cfg.CmdName != "mod init" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
  10. src/cmd/internal/testdir/testdir_test.go

    			t.Fatalf("write tempfile: %v", err)
    		}
    		cmd = []string{goTool, "run", t.goGcflags()}
    		if *linkshared {
    			cmd = append(cmd, "-linkshared")
    		}
    		cmd = append(cmd, tfile)
    		out, err = runcmd(cmd...)
    		if err != nil {
    			return err
    		}
    		return t.checkExpectedOutput(out)
    
    	case "errorcheckoutput":
    		// Run Go file and write its output into temporary Go file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top