Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 84 for 4096 (2.96 sec)

  1. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

                // Test basic buffer allocation
                RdmaMemoryRegion sendRegion = bufferManager.getSendRegion(4096);
                assertNotNull(sendRegion, "Send region should not be null");
                assertTrue(sendRegion.getSize() >= 4096, "Send region should be at least 4KB");
                assertNotNull(sendRegion.getBuffer(), "Send region buffer should not be null");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putInt(4096);
                byte[] bufferArray = buffer.array();
    
                // When
                int bytesConsumed = fileFsFullSizeInfo.decode(bufferArray, 10, 32);
    
                // Then
                assertEquals(32, bytesConsumed);
                assertEquals(2048L * 4 * 4096, fileFsFullSizeInfo.getCapacity());
                assertEquals(1024L * 4 * 4096, fileFsFullSizeInfo.getFree());
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/com/SmbComWriteResponseTest.java

        @Test
        public void testReturnFromReadParameterWordsWireFormatIs8() {
            // ensure the method returns 8 as claimed
            byte[] buf = new byte[12];
            buf[0] = 0x00;
            buf[1] = 0x10; // count = 4096 in little-endian (0x1000)
            int returned = resp.readParameterWordsWireFormat(buf, 0);
            assertEquals(8, returned, "Method should return 8 bytes processed");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/dtyp/SecurityDescriptorTest.java

            // Prepare buffer with invalid ACE count (> 4096)
            prepareSecurityDescriptorBufferWithInvalidAceCount(testBuffer, 0);
    
            assertThrows(SMBProtocolDecodingException.class, () -> securityDescriptor.decode(testBuffer, 0, testBuffer.length),
                    "Should throw exception for ACE count > 4096");
        }
    
        @Test
        @DisplayName("Test getType returns correct value")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  5. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackDecodeTestBase.kt

    import okio.Buffer
    
    /**
     * Tests Hpack implementation using https://github.com/http2jp/hpack-test-case/
     */
    open class HpackDecodeTestBase {
      private val bytesIn = Buffer()
      private val hpackReader = Hpack.Reader(bytesIn, 4096)
    
      protected fun testDecoder(story: Story) {
        for (testCase in story.cases) {
          val encoded = testCase.wire ?: continue
          bytesIn.write(encoded)
          hpackReader.readHeaders()
          assertSetEquals(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb1/trans2/Trans2GetDfsReferral.java

            this.maxReferralLevel = maxReferralLevel;
            this.request = new DfsReferralRequestBuffer(filename, maxReferralLevel);
            this.totalDataCount = 0;
            this.maxParameterCount = 0;
            this.maxDataCount = 4096;
            this.maxSetupCount = (byte) 0x00;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.smb1.ServerMessageBlock#isForceUnicode()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            FileFsFullSizeInformation info = (FileFsFullSizeInformation) response.getInfo();
            assertEquals(2000000L * 16L * 4096L, info.getCapacity());
            assertEquals(800000L * 16L * 4096L, info.getFree()); // This is caller available allocation units
        }
    
        @Test
        void testReadDataWireFormat_UnsupportedInformationLevel() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

            void testConstructorWithValidParameters() {
                // Given
                long sourceOffset = 1024L;
                long targetOffset = 2048L;
                int length = 4096;
    
                // When
                SrvCopychunk chunk = new SrvCopychunk(sourceOffset, targetOffset, length);
    
                // Then
                assertNotNull(chunk);
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/io/InputStreamUtil.java

     */
    public abstract class InputStreamUtil {
    
        /**
         * Do not instantiate.
         */
        protected InputStreamUtil() {
        }
    
        /** Default buffer size. */
        private static final int BUF_SIZE = 4096;
    
        /**
         * Creates a {@link FileInputStream}.
         *
         * @param file the file (must not be {@literal null})
         * @return a {@link FileInputStream} to read from the file
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. docs/smb3-features/05-rdma-smb-direct-design.md

        assumeTrue(provider.isAvailable());
        
        ByteBuffer buffer = ByteBuffer.allocateDirect(4096);
        RdmaMemoryRegion region = provider.registerMemory(buffer, 
            EnumSet.of(RdmaAccess.LOCAL_READ, RdmaAccess.REMOTE_READ));
        
        assertNotNull(region);
        assertEquals(4096, region.getSize());
        assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ));
        
        region.close();
    }
    
    @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top