Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 198 for k1024 (0.07 sec)

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

            info.endOfFile = 1024;
    
            assertEquals("test.txt", info.getName());
            assertEquals(SmbFile.TYPE_FILESYSTEM, info.getType());
            assertEquals(SmbFile.ATTR_ARCHIVE, info.getAttributes());
            assertEquals(1672531200000L, info.createTime());
            assertEquals(1672617600000L, info.lastModified());
            assertEquals(1024, info.length());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/SocketFailureTest.kt

        // request headers.
        // 431 "Request Header Fields Too Large"
        val largeHeaders =
          Headers
            .Builder()
            .apply {
              repeat(32) {
                add("name-$it", "value-$it-" + "0".repeat(1024))
              }
            }.build()
        val call2 =
          client.newCall(
            Request
              .Builder()
              .url(server.url("/"))
              .headers(largeHeaders)
              .build(),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/dcerpc/DcerpcPipeHandle.java

            if (buf.length < max_recv) {
                throw new IllegalArgumentException("buffer too small");
            }
    
            if (isStart && !isDirect) { // start of new frag, do trans
                off = in.read(buf, 0, 1024);
            } else {
                off = in.readDirect(buf, 0, buf.length);
            }
    
            if (buf[0] != 5 && buf[1] != 0) {
                throw new IOException("Unexpected DCERPC PDU header");
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/TransactNamedPipeOutputStream.java

                ensureOpen();
                final TransTransactNamedPipe req = new TransTransactNamedPipe(pipe.fid, b, off, len);
                if (dcePipe) {
                    req.maxDataCount = 1024;
                }
                pipe.send(req, new TransTransactNamedPipeResponse(pipe));
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/FilesTest.java

        assertThrows(FileNotFoundException.class, () -> Files.map(file));
      }
    
      public void testMap_readWrite() throws IOException {
        // Test data
        int size = 1024;
        byte[] expectedBytes = new byte[size];
        byte[] bytes = newPreFilledByteArray(1024);
    
        // Setup
        File file = createTempFile();
        Files.write(bytes, file);
    
        Random random = new Random();
        random.nextBytes(expectedBytes);
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/RequestTest.java

            when(request.split()).thenReturn(nextRequest);
            when(request.allowChain(nextRequest)).thenReturn(true);
            when(request.createCancel()).thenReturn(nextRequest);
            when(request.size()).thenReturn(1024);
            when(request.getOverrideTimeout()).thenReturn(5000);
    
            // When & Then
            assertTrue(request.isResponseAsync());
            assertEquals(nextRequest, request.getNext());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileInputStream.java

                        if (type == SmbConstants.TYPE_NAMED_PIPE) {
                            // Use fixed 1024 values for named pipes
                            request.setMinCount(1024);
                            request.setMaxCount(1024);
                            request.setRemaining(1024);
                        } else if (this.largeReadX) {
                            // Optimize large read requests
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionTest.java

            // Set up transaction parameters
            transaction.setMaxSetupCount((byte) 2);
            transaction.setTotalParameterCount(100);
            transaction.setTotalDataCount(200);
            transaction.setMaxParameterCount(1024);
            transaction.setMaxDataCountForTest(2048);
            transaction.setParameterCount(50);
            transaction.setParameterOffset(80);
            transaction.setDataCount(150);
            transaction.setDataOffset(130);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/ServerResponseValidatorTest.java

        @BeforeEach
        public void setUp() {
            validator = new ServerResponseValidator();
        }
    
        @Test
        public void testValidBuffer() throws Exception {
            byte[] buffer = new byte[1024];
            validator.validateBuffer(buffer, 100, 2048);
            // Should pass without exception
        }
    
        @Test
        public void testNullBuffer() throws Exception {
            assertThrows(SmbException.class, () -> {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/http/NetworkExplorer.java

        private CIFSContext transportContext;
    
        @Override
        public void init() throws ServletException {
    
            final StringBuilder sb = new StringBuilder();
            final byte[] buf = new byte[1024];
            int n;
            String name;
    
            final Properties p = new Properties();
            p.putAll(System.getProperties());
            p.setProperty("jcifs.smb.client.soTimeout", "600000");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top