Search Options

Results per page
Sort
Preferred Languages
Advance

Results 521 - 530 of 979 for buffer (0.08 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbComOpenAndXResponseTest.java

            assertTrue(result >= 0, "writeParameterWordsWireFormat should return non-negative value");
        }
    
        @Test
        void testReadParameterWordsWireFormat() {
            byte[] buffer = new byte[1024];
            int result = response.readParameterWordsWireFormat(buffer, 0);
    
            // The method should read parameter words
            assertTrue(result >= 0, "readParameterWordsWireFormat should return non-negative value");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

        void testReadParameterWordsWireFormat() {
            byte[] buffer = new byte[1024];
    
            int result = setupAndX.readParameterWordsWireFormat(buffer, 0);
    
            // The implementation always returns 0
            assertEquals(0, result, "readParameterWordsWireFormat returns 0");
        }
    
        @Test
        void testReadBytesWireFormat() {
            byte[] buffer = new byte[1024];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Queues.java

      public static <E> int drain(
          BlockingQueue<E> q, Collection<? super E> buffer, int numElements, Duration timeout)
          throws InterruptedException {
        // TODO(b/126049426): Consider using saturateToNanos(timeout) instead.
        return drain(q, buffer, numElements, timeout.toNanos(), NANOSECONDS);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/CriticalPerformanceTest.java

                            byte[] buffer = BufferCache.getBuffer();
                            long allocEnd = System.nanoTime();
                            totalAllocTime.addAndGet(allocEnd - allocStart);
                            allocations.incrementAndGet();
    
                            assertNotNull(buffer, "Buffer should not be null");
                            assertTrue(buffer.length > 0, "Buffer should have positive length");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/smb1/SmbConstants.java

        int DEFAULT_RESPONSE_TIMEOUT = 30000;
        /** Default socket timeout in milliseconds */
        int DEFAULT_SO_TIMEOUT = 35000;
        /** Default receive buffer size in bytes */
        int DEFAULT_RCV_BUF_SIZE = 60416;
        /** Default send buffer size in bytes */
        int DEFAULT_SND_BUF_SIZE = 16644;
        /** Default session limit */
        int DEFAULT_SSN_LIMIT = 250;
        /** Default connection timeout in milliseconds */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. cmd/storage-datatypes_test.go

    	"io"
    	"testing"
    	"time"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func BenchmarkDecodeVolInfoMsgp(b *testing.B) {
    	v := VolInfo{
    		Name:    "uuid",
    		Created: time.Now(),
    	}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    	rd := msgp.NewEndlessReader(buf.Bytes(), b)
    	dc := msgp.NewReader(rd)
    	b.Log("Size:", buf.Len(), "bytes")
    	b.SetBytes(1)
    	b.ReportAllocs()
    
    	for b.Loop() {
    		err := v.DecodeMsg(dc)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 9.1K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java

     * <ul>
     *   <li>Treating ISO control characters and specified space characters as spaces.</li>
     *   <li>Appending alphanumeric characters (0-9, A-Z, a-z) to the buffer.</li>
     *   <li>Appending symbol characters (!-/, :-@, [-`, {-~) to the buffer.</li>
     *   <li>Optionally removing duplicate terms based on a flag.</li>
     *   <li>Limiting the maximum size of alphanumeric and symbol terms.</li>
     * </ul>
     *
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/util/InputStreamThreadTest.java

            thread.start();
            thread.join(1000);
    
            String output = thread.getOutput();
            String[] lines = output.split("\n");
    
            assertTrue("Buffer should be limited to 10 items", lines.length <= 10);
            assertTrue("Last lines should be kept", output.contains("line15"));
        }
    
        public void test_run_maxBufferSizeConstant() {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/curl/CurlResponseTest.java

            try (InputStream stream = response.getContentAsStream()) {
                assertNotNull(stream);
                byte[] buffer = new byte[1024];
                int bytesRead = stream.read(buffer);
                assertEquals(data.length, bytesRead);
                assertArrayEquals(data, Arrays.copyOf(buffer, bytesRead));
            }
        }
    
        @Test
        public void testGetContentAsStreamWithoutCache() {
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/LmhostsTest.java

                            byte[] buffer = inv.getArgument(0);
                            int remaining = includeContent.length - index[0];
                            if (remaining <= 0) {
                                return -1;
                            }
                            int toRead = Math.min(buffer.length, remaining);
                            System.arraycopy(includeContent, index[0], buffer, 0, toRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.2K bytes
    - Viewed (0)
Back to top