Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,692 for writeFn (0.04 sec)

  1. cmd/metrics-v3-system-process.go

    	processIOWCharBytesMD             = NewCounterMD(processIOWCharBytes, "Total bytes written by the process to the underlying storage system including page cache, /proc/[pid]/io wchar")
    	processIOWriteBytesMD             = NewCounterMD(processIOWriteBytes, "Total bytes written by the process to the underlying storage system, /proc/[pid]/io write_bytes")
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Jun 20 17:55:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            int contextOffset = SMBUtil.readInt4(buffer, 28);
            assertTrue(contextOffset > 0);
    
            // Skip detailed context verification since we can't access headerStart
            // Just verify that contexts were written
            assertTrue(bytesWritten > 60); // Should be larger than basic negotiate request
        }
    
        @Test
        @DisplayName("Should handle empty negotiate contexts array")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Stream.kt

        }
      }
    
      /** A sink that writes outgoing data frames of a stream. This class is not thread safe. */
      inner class FramingSink(
        /** True if either side has cleanly shut down this stream. We shall send no more bytes. */
        var finished: Boolean = false,
      ) : Sink {
        /**
         * Buffer of outgoing data. This batches writes of small writes into this sink as larges frames
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/netbios/LmhostsTest.java

            File lmhostsFile = tempDir.resolve("lmhosts_empty").toFile();
            try (FileWriter writer = new FileWriter(lmhostsFile)) {
                writer.write("192.168.1.100 HOST1\n");
                writer.write("\n");
                writer.write("   \n");
                writer.write("192.168.1.101 HOST2\n");
            }
    
            when(mockConfig.getLmHostsFileName()).thenReturn(lmhostsFile.getAbsolutePath());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  5. cmd/erasure-decode_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", "object", erasure.ShardFileSize(test.data), writeAlgorithm, erasure.ShardSize())
    		}
    		n, err := erasure.Encode(t.Context(), bytes.NewReader(data), writers, buffer, erasure.dataBlocks+1)
    		closeBitrotWriters(writers)
    		if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/Trans2FindNext2Test.java

            Trans2FindNext2 next = new Trans2FindNext2(0x1111, 0, "*");
            byte[] dst = new byte[2];
    
            // When
            int written = next.writeSetupWireFormat(dst, 0);
    
            // Then
            assertEquals(2, written, "Should write 2 bytes");
            assertEquals(SmbComTransaction.TRANS2_FIND_NEXT2, dst[0], "First byte must be subCommand");
            assertEquals((byte) 0x00, dst[1], "Second byte must be 0");
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. docs/recipes.md

              @Throws(IOException::class)
              override fun writeTo(sink: BufferedSink) {
                val forwardingSink = object : ForwardingSink(sink) {
                  private var totalBytesWritten: Long = 0
                  private var completed = false
    
                  override fun write(source: Buffer, byteCount: Long) {
                    super.write(source, byteCount)
                    totalBytesWritten += byteCount
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 17:01:12 UTC 2025
    - 47.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            // Check that the path is written after the referral level
            // The path should be written starting at index 2
            // writeString adds null terminator
            assertTrue(len > 2, "Length should include path");
            String writtenPath = extractStringFromBuffer(buffer, 2, len - 2);
            assertTrue(writtenPath.contains("abc"), "Path should be written to buffer");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt

            Request
              .Builder()
              .url(server.url("/"))
              .post(
                object : RequestBody() {
                  override fun contentType() = null
    
                  override fun writeTo(sink: BufferedSink) {
                    for (i in 0..9) {
                      sink.writeByte(0)
                      sink.flush()
                      sleep(100)
                    }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 30 11:30:11 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  10. cmd/metacache-set_gen.go

    		return
    	}
    	err = en.WriteInt(z.pool)
    	if err != nil {
    		err = msgp.WrapError(err, "pool")
    		return
    	}
    	// write "set"
    	err = en.Append(0xa3, 0x73, 0x65, 0x74)
    	if err != nil {
    		return
    	}
    	err = en.WriteInt(z.set)
    	if err != nil {
    		err = msgp.WrapError(err, "set")
    		return
    	}
    	return
    }
    
    // MarshalMsg implements msgp.Marshaler
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Mar 19 20:23:12 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top