Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 102 for 512K (0.82 sec)

  1. src/test/java/jcifs/internal/fscc/FileFsFullSizeInformationTest.java

                buffer.putLong(1048576L); // Total allocation units (1M)
                buffer.putLong(524288L); // Caller available allocation units (512K)
                buffer.putLong(524288L); // Actual free allocation units (512K)
                buffer.putInt(8); // Sectors per allocation unit
                buffer.putInt(512); // Bytes per sector
                byte[] bufferArray = buffer.array();
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

        }
    
        /**
         * Formats a file size in bytes to a human-readable string with appropriate units.
         *
         * @param value the file size in bytes
         * @return formatted file size string (e.g., "1.5M", "2.3G", "512K")
         */
        public static String formatFileSize(final long value) {
            double target = value;
            String unit = ""; // TODO l10n?
            String format = "0.#";
            if (value < 1024) {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (1)
  3. src/test/java/jcifs/internal/fscc/FileFsSizeInformationTest.java

                buffer.order(ByteOrder.LITTLE_ENDIAN);
                buffer.putLong(1048576L); // Total allocation units (1M)
                buffer.putLong(524288L); // Free allocation units (512K)
                buffer.putInt(8); // Sectors per allocation unit
                buffer.putInt(512); // Bytes per sector
                byte[] bufferArray = buffer.array();
    
                // When
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

                        new Smb2Lock(512L, 512L, Smb2Lock.SMB2_LOCKFLAG_SHARED_LOCK), new Smb2Lock(1024L, 512L, Smb2Lock.SMB2_LOCKFLAG_UNLOCK),
                        new Smb2Lock(1536L, 512L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK | Smb2Lock.SMB2_LOCKFLAG_FAIL_IMMEDIATELY),
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponseTest.java

            assertTrue(response.getInfo() instanceof SmbInfoAllocation);
    
            SmbInfoAllocation info = (SmbInfoAllocation) response.getInfo();
            assertEquals(8L * 1000000L * 512L, info.getCapacity());
            assertEquals(8L * 500000L * 512L, info.getFree());
        }
    
        @Test
        void testReadDataWireFormat_FileFsSizeInformation() throws Exception {
            // Test reading FS_SIZE_INFO data
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  6. cmd/object-api-datatypes.go

    	{"BETWEEN_64_MB_AND_128_MB", humanize.MiByte * 64, humanize.MiByte*128 - 1},
    	{"BETWEEN_128_MB_AND_512_MB", humanize.MiByte * 128, humanize.MiByte*512 - 1},
    	{"GREATER_THAN_512_MB", humanize.MiByte * 512, math.MaxInt64},
    }
    
    // ObjectsHistogramIntervals is the list of all intervals
    // of object sizes to be included in objects histogram.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/rdma/RdmaIntegrationTest.java

            // Simulate various RDMA operations
            stats.recordRdmaRead(1024, 1000000); // 1KB in 1ms
            stats.recordRdmaWrite(2048, 2000000); // 2KB in 2ms
            stats.recordRdmaSend(512, 500000); // 512B in 0.5ms
            stats.recordRdmaReceive(1536, 1500000); // 1.5KB in 1.5ms
            stats.recordError();
    
            // Verify counters
            assertEquals(1, stats.getRdmaReads(), "Should have 1 read operation");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 13.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileSystemInformationTest.java

                buffer[16] = 0x00;
                buffer[17] = 0x02; // bytesPerSect = 512
    
                int bytesDecoded = smbInfoAllocation.decode(buffer, 0, buffer.length);
    
                assertEquals(20, bytesDecoded);
                assertEquals(8L * 4096L * 512L, smbInfoAllocation.getCapacity());
                assertEquals(8L * 2048L * 512L, smbInfoAllocation.getFree());
            }
    
            @Test
    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/internal/smb2/io/Smb2WriteRequestTest.java

                assertDoesNotThrow(() -> request.setWriteFlags(Integer.MAX_VALUE));
            }
    
            @ParameterizedTest
            @DisplayName("Should handle various offset values")
            @ValueSource(longs = { 0L, 1L, 512L, 1024L, 4096L, 1048576L, Long.MAX_VALUE })
            void testVariousOffsets(long offset) {
                assertDoesNotThrow(() -> request.setOffset(offset));
            }
    
            @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SidResolverTest.java

            SID[] result = sidResolver.getGroupMemberSids(mockContext, testServerName, mockDomainSid, 512, 0);
    
            assertNotNull(result);
            assertArrayEquals(expectedMembers, result);
            verify(sidResolver, times(1)).getGroupMemberSids(mockContext, testServerName, mockDomainSid, 512, 0);
        }
    
        @Test
        void testGetGroupMemberSids_EmptyGroup() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top