Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 694 for nBytes (0.03 sec)

  1. 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)
  2. guava/src/com/google/common/hash/LittleEndianByteArray.java

      /**
       * Load 8 bytes into long in a little endian manner, from the substring between position and
       * position + 8. The array must have at least 8 bytes from offset (inclusive).
       *
       * @param input the input bytes
       * @param offset the offset into the array at which to start
       * @return a long of a concatenated 8 bytes
       */
      static long load64(byte[] input, int offset) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            // status (2 bytes)
            SMBUtil.writeInt2(0, buffer, bufferIndex);
            bufferIndex += 2;
            // converter (2 bytes)
            SMBUtil.writeInt2(100, buffer, bufferIndex);
            bufferIndex += 2;
            // numEntries (2 bytes)
            SMBUtil.writeInt2(3, buffer, bufferIndex);
            bufferIndex += 2;
            // totalAvailableEntries (2 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/AbstractHasher.java

      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes) {
        return putBytes(bytes, 0, bytes.length);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putBytes(byte[] bytes, int off, int len) {
        Preconditions.checkPositionIndexes(off, off + len, bytes.length);
        for (int i = 0; i < len; i++) {
          putByte(bytes[off + i]);
        }
        return this;
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            // Call the method
            int bytesRead = response.readBytesWireFormat(byteData, 0);
    
            // Assertions
            // readBytesWireFormat returns bytes processed up to null terminator
            assertEquals(14, bytesRead); // 8 bytes key + 6 bytes domain name
            assertArrayEquals(encryptionKey, serverData.encryptionKey);
            assertEquals("DOMAIN", serverData.oemDomainName);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/ntlmssp/av/AvSingleHostTest.java

            assertNotNull(value);
            assertEquals(48, value.length);
    
            // Verify the size field (first 4 bytes)
            assertEquals(48, (value[0] & 0xFF) | ((value[1] & 0xFF) << 8) | ((value[2] & 0xFF) << 16) | ((value[3] & 0xFF) << 24));
            // Verify the zero field (next 4 bytes)
            assertEquals(0, (value[4] & 0xFF) | ((value[5] & 0xFF) << 8) | ((value[6] & 0xFF) << 16) | ((value[7] & 0xFF) << 24));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakAcknowledgment.java

            // StructureSize (2 bytes) - must be 36
            SMBUtil.writeInt2(STRUCTURE_SIZE, dst, dstIndex);
            dstIndex += 2;
    
            // Reserved (2 bytes)
            SMBUtil.writeInt2(0, dst, dstIndex);
            dstIndex += 2;
    
            // Flags (4 bytes)
            SMBUtil.writeInt4(flags, dst, dstIndex);
            dstIndex += 4;
    
            // LeaseKey (16 bytes)
            leaseKey.encode(dst, dstIndex);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top