Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,069 for nBytes (0.03 sec)

  1. src/test/java/jcifs/smb1/util/HMACT64Test.java

            // Test constructor with a key longer than BLOCK_LENGTH (64 bytes)
            // HMACT64 truncates keys at 64 bytes
            HMACT64 hmac = new HMACT64(LONG_TEST_KEY);
            assertNotNull(hmac);
        }
    
        @Test
        void testConstructorWithShortKey() {
            // Test constructor with a key shorter than BLOCK_LENGTH (64 bytes)
            HMACT64 hmac = new HMACT64(SHORT_TEST_KEY);
            assertNotNull(hmac);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java

                // Verify offset (8 bytes)
                assertEquals(offset, SMBUtil.readInt8(buffer, 0));
    
                // Verify length (8 bytes)
                assertEquals(length, SMBUtil.readInt8(buffer, 8));
    
                // Verify flags (4 bytes)
                assertEquals(flags, SMBUtil.readInt4(buffer, 16));
    
                // Verify reserved field is zeros (4 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComNtTransactionResponseTest.java

        void testReadParameterWordsWireFormat_bufDataStartIsZero() {
            // Test case when bufDataStart is initially 0.
            byte[] buffer = new byte[37]; // 3 reserved + 8*4 bytes for int4 values + 2 bytes for setupCount
            int bufferIndex = 0;
    
            // Reserved bytes
            buffer[bufferIndex++] = 0x00;
            buffer[bufferIndex++] = 0x00;
            buffer[bufferIndex++] = 0x00;
    
            // totalParameterCount = 10
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/util/MemoryUtil.java

                displaySize = new BigDecimal(size).divide(BigDecimal.valueOf(1000)) + "KB";
            } else {
                displaySize = size + "bytes";
            }
            return displaySize;
        }
    
        /**
         * Gets the currently used memory in bytes.
         *
         * @return used memory in bytes
         */
        public static long getUsedMemory() {
            final Runtime runtime = Runtime.getRuntime();
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

         */
        @Test
        void testReadParametersWireFormat() {
            NetShareEnumResponse response = new NetShareEnumResponse();
            // Parameters: status (2 bytes), converter (2 bytes), numEntries (2 bytes), totalAvailableEntries (2 bytes)
            byte[] buffer = { 0x00, 0x00, // status = 0 (Success)
                    0x12, 0x34, // converter = 0x3412
                    0x02, 0x00, // numEntries = 2
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/HashingInputStream.java

        return b;
      }
    
      /**
       * Reads the specified bytes of data from the underlying input stream and updates the hasher with
       * the bytes read.
       */
      @Override
      @CanIgnoreReturnValue
      public int read(byte[] bytes, int off, int len) throws IOException {
        int numOfBytesRead = in.read(bytes, off, len);
        if (numOfBytesRead != -1) {
          hasher.putBytes(bytes, off, numOfBytesRead);
        }
        return numOfBytesRead;
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/Utf8Test.java

      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
      private static void assertNotWellFormed(int... bytes) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

         * unsigned time correctly.  The last write time is zero which should be
         * encoded as four 0xFF bytes by {@code writeUTime}.
         */
        @ParameterizedTest(name = "fid={0}, lastWriteTime={1}")
        @MethodSource("validParams")
        @DisplayName("happy: writeParameterWordsWireFormat writes correct bytes")
        void testWriteParameterWordsWireFormat(int fid, long lastWriteTime, byte[] expected) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

         *
         * @return nonce appropriate for the dialect (16 bytes for GCM, 12 bytes for CCM)
         */
        public byte[] generateNonce() {
            final byte[] nonce = new byte[isGCMCipher() ? 16 : 12];
    
            if (isGCMCipher()) {
                // SMB 3.1.1 GCM: 96-bit random/fixed + 32-bit counter for guaranteed uniqueness
                // Fill first 12 bytes with random data
                secureRandom.nextBytes(nonce);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/api/admin/stats/ApiAdminStatsAction.java

            public short percent;
            /** Used space in bytes */
            public long used;
            /** Filesystem path */
            public String path;
            /** Free space in bytes */
            public long free;
            /** Total space in bytes */
            public long total;
            /** Usable space in bytes */
            public long usable;
        }
    
        /**
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top