Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 242 for writelns (0.15 sec)

  1. platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/btree/ByteOutputTest.groovy

            when:
            def stream = output.start(0)
            stream.writeInt(123)
            stream.writeByte(12)
            output.done()
    
            then:
            file.length() == 5
            file.seek(0)
            file.readInt() == 123
            file.readByte() == 12
    
            when:
            stream = output.start(5)
            stream.writeInt(321)
            output.done()
    
            then:
            file.length() == 9
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:08:47 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. 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)
  3. guava/src/com/google/common/io/CharSink.java

        writeLines(lines, System.getProperty("line.separator"));
      }
    
      /**
       * Writes the given lines of text to this sink with each line (including the last) terminated with
       * the given line separator.
       *
       * @throws IOException if an I/O error occurs while writing to this sink
       */
      public void writeLines(Iterable<? extends CharSequence> lines, String lineSeparator)
          throws IOException {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  4. subprojects/core/src/test/groovy/org/gradle/execution/DefaultCancellableOperationManagerTest.groovy

        @AutoCleanup
        def writeEnd = new PipedOutputStream()
        @AutoCleanup("shutdownNow")
        def executorService = Executors.newCachedThreadPool()
        def cancellationToken = new DefaultBuildCancellationToken()
        def monitor = new DefaultCancellableOperationManager(executorService, new DisconnectableInputStream(new PipedInputStream(writeEnd)), cancellationToken)
    
        def "can exit without cancel"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 07 08:18:46 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/Decoder.java

         * Returns an InputStream which can be used to read raw bytes.
         */
        InputStream getInputStream();
    
        /**
         * Reads a signed 64 bit long value. Can read any value that was written using {@link Encoder#writeLong(long)}.
         *
         * @throws EOFException when the end of the byte stream is reached before the long value can be fully read.
         */
        long readLong() throws EOFException, IOException;
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. src/runtime/write_err_android.go

    	// buffer writes until we see a newline.
    	var hlen int
    	switch logger {
    	case logd:
    		hlen = writeLogdHeader()
    	case legacy:
    		hlen = len(writeHeader)
    	}
    
    	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
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  8. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/kryo/StringDeduplicatingKryoBackedEncoder.java

            output.writeBytes(bytes, offset, count);
        }
    
        @Override
        public void writeLong(long value) {
            output.writeLong(value);
        }
    
        @Override
        public void writeSmallLong(long value) {
            output.writeLong(value, true);
        }
    
        @Override
        public void writeInt(int value) {
            output.writeInt(value);
        }
    
        @Override
        public void writeSmallInt(int value) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/io/multi.go

    }
    
    // MultiWriter creates a writer that duplicates its writes to all the
    // provided writers, similar to the Unix tee(1) command.
    //
    // Each write is written to each listed writer, one at a time.
    // If a listed writer returns an error, that overall write operation
    // stops and returns the error; it does not continue down the list.
    func MultiWriter(writers ...Writer) Writer {
    	allWriters := make([]Writer, 0, len(writers))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 19 15:49:05 UTC 2022
    - 3.3K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          frameHeader(
            streamId = 0,
            length = 8,
            type = TYPE_PING,
            flags = if (ack) FLAG_ACK else FLAG_NONE,
          )
          sink.writeInt(payload1)
          sink.writeInt(payload2)
          sink.flush()
        }
      }
    
      /**
       * Tell the peer to stop creating streams and that we last processed `lastGoodStreamId`, or zero
       * if no streams were processed.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 11.3K bytes
    - Viewed (0)
Back to top