Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 261 for writeLoc (0.13 sec)

  1. src/net/writev_test.go

    	oldHook := poll.TestHookDidWritev
    	defer func() { poll.TestHookDidWritev = oldHook }()
    	var writeLog struct {
    		sync.Mutex
    		log []int
    	}
    	poll.TestHookDidWritev = func(size int) {
    		writeLog.Lock()
    		writeLog.log = append(writeLog.log, size)
    		writeLog.Unlock()
    	}
    	var want bytes.Buffer
    	for i := 0; i < chunks; i++ {
    		want.WriteByte(byte(i))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  2. src/internal/poll/fd_unix.go

    				continue
    			}
    		}
    		if err != nil {
    			return 0, err
    		}
    		return len(p), nil
    	}
    }
    
    // WriteTo wraps the sendto network call.
    func (fd *FD) WriteTo(p []byte, sa syscall.Sockaddr) (int, error) {
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    	if err := fd.pd.prepareWrite(fd.isFile); err != nil {
    		return 0, err
    	}
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 04:09:44 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  3. src/internal/poll/fd_windows.go

    	})
    	o.ClearBufs()
    	TestHookDidWritev(n)
    	consume(buf, int64(n))
    	return int64(n), err
    }
    
    // WriteTo wraps the sendto network call.
    func (fd *FD) WriteTo(buf []byte, sa syscall.Sockaddr) (int, error) {
    	if err := fd.writeLock(); err != nil {
    		return 0, err
    	}
    	defer fd.writeUnlock()
    
    	if len(buf) == 0 {
    		// handle zero-byte payload
    		o := &fd.wop
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 16:50:42 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  4. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultRedrawableLabel.java

        public Cursor getWritePosition() {
            return writePos;
        }
    
        public void setVisible(boolean isVisible) {
            this.isVisible = isVisible;
        }
    
        public boolean isOverlappingWith(Cursor cursor) {
            return cursor.row == writePos.row && writePos.col > cursor.col;
        }
    
        @Override
        public void redraw(AnsiContext ansi) {
            if (writePos.row < 0) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            Cursor writePos = Cursor.newBottomLeft();
            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH
    
            when:
            ansiExecutor.writeAt(writePos) {
                it.a(text)
            }
    
            then:
            writeCursor == Cursor.at(startRow, TERMINAL_WIDTH)
            writePos == writeCursor
            0 * newLineListener._
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  6. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultAnsiExecutor.java

            private final Ansi delegate;
            private final ColorMap colorMap;
            private final Cursor writePos;
    
            AnsiContextImpl(Ansi delegate, ColorMap colorMap, Cursor writePos) {
                this.delegate = delegate;
                this.colorMap = colorMap;
                this.writePos = writePos;
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      call->set_requested_device(kXlaDeviceName);
      Node* write_op = MakeWrite(root, "write");
      write_op->AddAttr(kXlaHasReferenceVarsAttr, false);
      root.graph()->AddControlEdge(call, write_op);
    
      std::unique_ptr<Graph> graph;
      TF_ASSERT_OK(BuildXlaOps(root, fdef_lib, &graph));
    
      Node* write_op_new = FindNodeByName(graph.get(), write_op->name());
      ASSERT_NE(write_op_new, nullptr);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  8. src/runtime/write_err_android.go

    	dst := writeBuf[hlen:]
    	for _, v := range b {
    		if v == 0 { // android logging won't print a zero byte
    			v = '0'
    		}
    		dst[writePos] = v
    		writePos++
    		if v == '\n' || writePos == len(dst)-1 {
    			dst[writePos] = 0
    			write(writeFD, unsafe.Pointer(&writeBuf[0]), int32(hlen+writePos))
    			clear(dst)
    			writePos = 0
    		}
    	}
    }
    
    func initLegacy() {
    	// In legacy mode, logs are written to /dev/log/main
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultTextArea.java

        private final Cursor writePos = new Cursor();
        private final AnsiExecutor ansiExecutor;
    
        public DefaultTextArea(AnsiExecutor ansiExecutor) {
            this.ansiExecutor = ansiExecutor;
        }
    
        /**
         * Returns the bottom right position of this text area.
         */
        public Cursor getWritePosition() {
            return writePos;
        }
    
        public void newLineAdjustment() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. cmd/metrics-v3-cache.go

    	)
    }
    
    func getDiffStats(initialStats, currentStats madmin.DiskIOStats) madmin.DiskIOStats {
    	return madmin.DiskIOStats{
    		ReadIOs:      currentStats.ReadIOs - initialStats.ReadIOs,
    		WriteIOs:     currentStats.WriteIOs - initialStats.WriteIOs,
    		ReadSectors:  currentStats.ReadSectors - initialStats.ReadSectors,
    		WriteSectors: currentStats.WriteSectors - initialStats.WriteSectors,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 00:51:34 UTC 2024
    - 8.1K bytes
    - Viewed (0)
Back to top