Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 167 for k1024 (0.02 sec)

  1. cmd/erasure-decode_test.go

    	// 4
    	{dataBlocks: 7, onDisks: 14, offDisks: 0, blocksize: int64(oneMiByte), data: oneMiByte, offset: 3, length: 1024, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false},                    // 5
    	{dataBlocks: 8, onDisks: 16, offDisks: 0, blocksize: int64(oneMiByte), data: oneMiByte, offset: 4, length: 8 * 1024, algorithm: DefaultBitrotAlgorithm, shouldFail: false, shouldFailQuorum: false},                // 6
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                buffer.putInt(1024);
    
                // When
                fileFsSizeInfo.decode(buffer.array(), 0, 24);
    
                // Then - multiple calls should return same values
                assertEquals(2000L * 4 * 1024, fileFsSizeInfo.getCapacity());
                assertEquals(2000L * 4 * 1024, fileFsSizeInfo.getCapacity());
                assertEquals(1000L * 4 * 1024, fileFsSizeInfo.getFree());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putInt(1024);
    
                // When
                fileFsFullSizeInfo.decode(buffer.array(), 0, 32);
    
                // Then - multiple calls should return same values
                assertEquals(2000L * 4 * 1024, fileFsFullSizeInfo.getCapacity());
                assertEquals(2000L * 4 * 1024, fileFsFullSizeInfo.getCapacity());
                assertEquals(1000L * 4 * 1024, 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)
  4. src/test/java/jcifs/internal/fscc/SmbInfoAllocationTest.java

            SMBUtil.writeInt2(1024, buffer2, offset); // bytesPerSect
    
            smbInfoAllocation.decode(buffer2, 0, buffer2.length);
    
            // Verify values are updated
            assertNotEquals(firstCapacity, smbInfoAllocation.getCapacity());
            assertNotEquals(firstFree, smbInfoAllocation.getFree());
    
            // Verify new calculations
            assertEquals(2000L * 8 * 1024, smbInfoAllocation.getCapacity());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/info/Smb2SetInfoResponseTest.java

            byte[] dst = new byte[1024];
            int dstIndex = 0;
    
            int result = response.writeBytesWireFormat(dst, dstIndex);
    
            assertEquals(0, result);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with valid structure size")
        void testReadBytesWireFormatValidStructureSize() throws SMBProtocolDecodingException {
            byte[] buffer = new byte[1024];
            int bufferIndex = 0;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

            info1.entry_path = "test_path";
    
            ByteArrayOutputStream bos = new ByteArrayOutputStream();
            // Create buffer for encoding - initially allocate some space
            byte[] encodeBuffer = new byte[1024];
            NdrBuffer dst = new NdrBuffer(encodeBuffer, 0);
            info1.encode(dst);
    
            ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray());
            // Use the encoded buffer for decoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlRequestTest.java

        private static final int TEST_CONTROL_CODE = Smb2IoctlRequest.FSCTL_DFS_GET_REFERRALS;
        private static final byte[] TEST_FILE_ID = new byte[16];
        private static final byte[] TEST_OUTPUT_BUFFER = new byte[1024];
    
        @BeforeEach
        void setUp() {
            Arrays.fill(TEST_FILE_ID, (byte) 0x42);
        }
    
        private void setupMockConfig() {
            when(mockConfig.getTransactionBufferSize()).thenReturn(65536);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/io/Smb2ReadRequestTest.java

                byte[] buffer = new byte[1024];
                int result = request.readBytesWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should return 0 regardless of buffer position")
            void testReadBytesWireFormatDifferentPosition() {
                byte[] buffer = new byte[1024];
                int result = request.readBytesWireFormat(buffer, 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java

            }
        }
    
        @Test
        public void testGetSendRegion() throws Exception {
            RdmaMemoryRegion region = bufferManager.getSendRegion(1024);
            assertNotNull(region, "Send region should not be null");
            assertTrue(region.getSize() >= 1024, "Region should be at least requested size");
            assertTrue(region.hasAccess(RdmaAccess.LOCAL_READ), "Should have local read access");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/cache2/RelayTest.kt

        val relay = edit(file, upstream, metadata, 1024)
        val source = relay.newSource()
        val sourceBuffer = Buffer()
        assertThat(source!!.read(sourceBuffer, 5)).isEqualTo(5)
        assertThat(sourceBuffer.readUtf8()).isEqualTo("abcde")
        assertThat(source.read(sourceBuffer, 1024)).isEqualTo(8)
        assertThat(sourceBuffer.readUtf8()).isEqualTo("fghijklm")
        assertThat(source.read(sourceBuffer, 1024)).isEqualTo(-1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top