Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 146 for writeAt (0.17 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultTextArea.java

            writePos.row++;
        }
    
        @Override
        protected void doLineText(final CharSequence text) {
            if (text.length() == 0) {
                return;
            }
    
            ansiExecutor.writeAt(writePos, new Action<AnsiContext>() {
                @Override
                public void execute(AnsiContext ansi) {
                    ansi.withStyle(getStyle(), new Action<AnsiContext>() {
                        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/DefaultAnsiExecutorTest.groovy

            int startRow = writePos.row
            String text = "A" * TERMINAL_WIDTH +
                "B" * TERMINAL_WIDTH +
                "C" * TERMINAL_WIDTH +
                "D" * 3
    
            when:
            ansiExecutor.writeAt(writePos) {
                it.a(text)
            }
    
            then:
            writeCursor == Cursor.at(0, text.length())
            writePos == writeCursor
            interaction { expectLineWrapCallback(startRow, text.length()) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/cmd/go/internal/lockedfile/lockedfile.go

    	defer func() {
    		if err != nil {
    			if _, err := f.WriteAt(old, 0); err == nil {
    				f.Truncate(int64(len(old)))
    			}
    		}
    	}()
    
    	if len(new) >= len(old) {
    		if _, err := f.WriteAt(new[:len(old)], 0); err != nil {
    			return err
    		}
    	} else {
    		if _, err := f.WriteAt(new, 0); err != nil {
    			return err
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.1K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/macho_combine_dwarf.go

    	if _, err := r.f.Seek(r.offset+offset, 0); err != nil {
    		return err
    	}
    	return binary.Read(r.f, r.order, data)
    }
    
    func (r loadCmdReader) WriteAt(offset int64, data interface{}) error {
    	if _, err := r.f.Seek(r.offset+offset, 0); err != nil {
    		return err
    	}
    	return binary.Write(r.f, r.order, data)
    }
    
    // machoCombineDwarf merges dwarf info generated by dsymutil into a macho executable.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 18:45:27 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. src/net/sockopt_plan9.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import "syscall"
    
    func setKeepAlive(fd *netFD, keepalive bool) error {
    	if keepalive {
    		_, e := fd.ctl.WriteAt([]byte("keepalive"), 0)
    		return e
    	}
    	return nil
    }
    
    func setLinger(fd *netFD, sec int) error {
    	return syscall.EPLAN9
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 04:23:59 UTC 2016
    - 406 bytes
    - Viewed (0)
  6. src/io/io.go

    }
    
    // WriterTo is the interface that wraps the WriteTo method.
    //
    // WriteTo writes data to w until there's no more data to write or
    // when an error occurs. The return value n is the number of bytes
    // written. Any error encountered during the write is also returned.
    //
    // The Copy function uses WriterTo if available.
    type WriterTo interface {
    	WriteTo(w Writer) (n int64, err error)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/AnsiExecutor.java

     * limitations under the License.
     */
    
    package org.gradle.internal.logging.console;
    
    import org.gradle.api.Action;
    
    public interface AnsiExecutor {
        void write(Action<? super AnsiContext> action);
        void writeAt(Cursor writePos, Action<? super AnsiContext> action);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 851 bytes
    - Viewed (0)
  8. src/net/tcpsockopt_plan9.go

    }
    
    // Set keep alive period.
    func setKeepAliveIdle(fd *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    
    	cmd := "keepalive " + itoa.Itoa(int(d/time.Millisecond))
    	_, e := fd.ctl.WriteAt([]byte(cmd), 0)
    	return e
    }
    
    func setKeepAliveInterval(_ *netFD, d time.Duration) error {
    	if d < 0 {
    		return nil
    	}
    	return syscall.EPLAN9
    }
    
    func setKeepAliveCount(_ *netFD, n int) error {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 06:04:31 UTC 2024
    - 762 bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/console/DefaultAnsiExecutor.java

            this.listener = listener;
        }
    
        @Override
        public void write(Action<? super AnsiContext> action) {
            Ansi ansi = factory.create();
            action.execute(new AnsiContextImpl(ansi, colorMap, writeCursor));
            write(ansi);
        }
    
        @Override
        public void writeAt(Cursor writePos, Action<? super AnsiContext> action) {
            Ansi ansi = factory.create();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  10. src/cmd/internal/buildid/rewrite.go

    			i := bytes.Index(buf[start:tiny+n], idBytes)
    			if i < 0 {
    				break
    			}
    			matches = append(matches, offset+int64(start+i-tiny))
    			h.Write(buf[start : start+i])
    			h.Write(zeros)
    			start += i + len(id)
    		}
    		if n < bufSize {
    			// Did not fill buffer, must be at end of file.
    			h.Write(buf[start : tiny+n])
    			break
    		}
    
    		// Process all but final tiny bytes of buf (bufSize = len(buf)-tiny).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 5.1K bytes
    - Viewed (0)
Back to top