Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 84 for 4096 (2.99 sec)

  1. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

            // Arrange common constructor collaborators to avoid touching network/state
            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(true);
            when(tree.getSendBufferSize()).thenReturn(4096);
            // Act
            return new SmbPipeOutputStream(handle, tree);
        }
    
        @ParameterizedTest
        @ValueSource(booleans = { true, false })
        @DisplayName("isOpen delegates to handle.isOpen")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

        void testSetMaxOutputResponse() {
            setupMockConfig();
            Smb2IoctlRequest request = new Smb2IoctlRequest(mockConfig, TEST_CONTROL_CODE);
            int maxOutput = 4096;
    
            request.setMaxOutputResponse(maxOutput);
    
            assertNotNull(request);
        }
    
        @Test
        @DisplayName("Test setInputData method")
        void testSetInputData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java

            lenient().when(tree.acquire()).thenReturn(tree);
            lenient().when(tree.getConfig()).thenReturn(config);
            lenient().when(config.getListCount()).thenReturn(10);
            lenient().when(config.getListSize()).thenReturn(4096);
    
            lenient().when(parent.getLocator()).thenReturn(locator);
            lenient().when(locator.getUNCPath()).thenReturn("\\\\SERVER\\Share\\dir\\"); // ends with \\
    
            // Create URL with registered handler
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/smb1/SecurityDescriptor.java

                bufferIndex += 2;
                final int numAces = ServerMessageBlock.readInt4(buffer, bufferIndex);
                bufferIndex += 4;
    
                if (numAces > 4096) {
                    throw new IOException("Invalid SecurityDescriptor");
                }
    
                aces = new ACE[numAces];
                for (int i = 0; i < numAces; i++) {
                    aces[i] = new ACE();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java

            Trans2GetDfsReferral cmd = new Trans2GetDfsReferral("/file");
            assertEquals("/file", getPrivateField(cmd, "path"));
            assertEquals((byte) 0x00, getPrivateField(cmd, "maxSetupCount"));
            assertEquals(4096, getPrivateField(cmd, "maxDataCount"));
        }
    
        @Test
        @DisplayName("writeSetupWireFormat writes subCommand and padding")
        void testWriteSetup() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/dtyp/SecurityDescriptor.java

                SMBUtil.readInt2(buffer, bufferIndex);
                bufferIndex += 2;
                final int numAces = SMBUtil.readInt4(buffer, bufferIndex);
                bufferIndex += 4;
    
                if (numAces > 4096) {
                    throw new SMBProtocolDecodingException("Invalid SecurityDescriptor");
                }
    
                this.aces = new ACE[numAces];
                for (int i = 0; i < numAces; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java

                long changeTime = creationTime + 3000000L;
                SMBUtil.writeInt8(changeTime, buffer, bufferIndex + 32);
                // Allocation Size (8 bytes)
                SMBUtil.writeInt8(4096, buffer, bufferIndex + 40);
                // End of File (8 bytes)
                SMBUtil.writeInt8(1024, buffer, bufferIndex + 48);
                // File Attributes (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            byte[] buffer = new byte[22];
            int idFileSystem = 0xABCDEF00;
            int sectPerAlloc = 4;
            long alloc = 500000L;
            long free = 250000L;
            int bytesPerSect = 4096;
    
            // Encode test data
            int offset = 0;
            SMBUtil.writeInt4(idFileSystem, buffer, offset);
            offset += 4;
            SMBUtil.writeInt4(sectPerAlloc, buffer, offset);
            offset += 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/ReaderUtil.java

     */
    public abstract class ReaderUtil {
    
        /**
         * Do not instantiate.
         */
        protected ReaderUtil() {
        }
    
        /** Default buffer size */
        private static final int BUF_SIZE = 4096;
    
        /**
         * Creates a {@link Reader} to read from a file with the specified encoding.
         *
         * @param is
         *            the input stream (must not be {@literal null})
         * @param encoding
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/curl/CurlResponse.java

         *
         * @return the content as a string.
         * @throws CurlException if an error occurs while accessing the content.
         */
        public String getContentAsString() {
            final byte[] bytes = new byte[4096];
            try (BufferedInputStream bis = new BufferedInputStream(getContentAsStream());
                    ByteArrayOutputStream baos = new ByteArrayOutputStream()) {
                int length = bis.read(bytes);
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Sat Jul 05 01:38:18 UTC 2025
    - 6.8K bytes
    - Viewed (0)
Back to top