Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 773 for writeln (0.05 seconds)

  1. cmd/bitrot-streaming.go

    	// Hence an immediate Read() on the file can return incorrect data.
    	if b.canClose != nil {
    		b.canClose.Wait()
    	}
    
    	// Recycle the buffer.
    	if b.byteBuf != nil {
    		globalBytePoolCap.Load().Put(b.byteBuf)
    		b.byteBuf = nil
    	}
    	return err
    }
    
    // newStreamingBitrotWriterBuffer returns streaming bitrot writer implementation.
    // The output is written to the supplied writer w.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Jan 17 19:19:30 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  2. internal/ringbuffer/ring_buffer_test.go

    			writeRng.Read(buf)
    			// Write
    			n, err := rb.Write(buf[:writeRng.Intn(len(buf))])
    			if err != nil {
    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    			wrote.Write(buf[:n])
    			debugln("WRITE 1\t", n, wroteBytes)
    
    			// WriteString
    			n, err = rb.WriteString(string(buf[:writeRng.Intn(len(buf))]))
    			if err != nil {
    				t.Fatalf("write failed: %v", err)
    			}
    			wroteBytes += n
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComFindClose2Test.java

        }
    
        @Test
        void testWriteParameterWordsWireFormatLittleEndian() {
            byte[] dst = new byte[2];
            int written = instance.writeParameterWordsWireFormat(dst, 0);
            assertEquals(2, written, "writeParameterWordsWireFormat should write exactly 2 bytes");
            // SMBUtil.writeInt2 writes the low byte first (little‑endian)
            assertEquals((byte) (TEST_SID & 0xFF), dst[0]);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  4. compat/maven-toolchain-builder/src/main/java/org/apache/maven/toolchain/io/ToolchainsWriter.java

     */
    @Deprecated(since = "4.0.0")
    public interface ToolchainsWriter {
    
        /**
         * Writes the supplied toolchains to the specified character writer. The writer will be automatically closed before
         * the method returns.
         *
         * @param output The writer to serialize the toolchains to, must not be {@code null}.
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Wed Mar 05 09:37:42 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  5. impl/maven-core/src/test/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanCreatorTest.java

            });
    
            new BuildPlanLogger() {
                @Override
                protected void mojo(Consumer<String> writer, MojoExecution mojoExecution) {}
            }.writePlan(System.out::println, plan);
    
            plan.allSteps().forEach(phase -> {
                phase.predecessors.forEach(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Mar 28 15:21:19 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  6. cmd/erasure-heal_test.go

    		buffer := make([]byte, test.blocksize, 2*test.blocksize)
    		writers := make([]io.Writer, len(disks))
    		for i, disk := range disks {
    			writers[i] = newBitrotWriter(disk, "", "testbucket", "testobject", erasure.ShardFileSize(test.size), test.algorithm, erasure.ShardSize())
    		}
    		_, err = erasure.Encode(t.Context(), bytes.NewReader(data), writers, buffer, erasure.dataBlocks+1)
    		closeBitrotWriters(writers)
    		if err != nil {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  7. src/archive/tar/testdata/writer-big.tar

    Joe Tsai <******@****.***> 1503528984 -0700
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Thu Aug 24 01:35:39 GMT 2017
    - 512 bytes
    - Click Count (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

        nextAddress += count
        return (from until nextAddress)
          .map {
            return@map InetAddress.getByAddress(
              Buffer().writeLong(0L).writeLong(it).readByteArray(),
            )
          }
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  9. internal/ringbuffer/README.md

    Regular Reads will block until data is available, but not wait for a full buffer. 
    Writes will block until there is space available and writes bigger than the buffer will wait for reads to make space.
    
    `TryRead` and `TryWrite` are still available for non-blocking reads and writes.
    
    To signify the end of the stream, close the ring buffer from the writer side with `rb.CloseWriter()`
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed May 15 00:11:04 GMT 2024
    - 2.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/rdma/RdmaStatistics.java

        }
    
        /**
         * Calculate average write latency in microseconds
         *
         * @return average write latency
         */
        public double getAverageWriteLatencyMicros() {
            long writes = rdmaWrites.get();
            if (writes == 0) {
                return 0.0;
            }
            return totalWriteTime.get() / (double) writes / 1000.0; // Convert to microseconds
        }
    
        /**
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 10.7K bytes
    - Click Count (0)
Back to Top