Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 212 for 0x40 (0.14 sec)

  1. src/test/java/jcifs/pac/kerberos/KerberosApRequestTest.java

        void byteArrayConstructor_malformedDER_throwsWrapped() {
            // Arrange: Truncated SEQUENCE (0x30 len=2 but only 1 byte of content)
            byte[] malformed = new byte[] { 0x30, 0x02, 0x01 };
    
            // Act + Assert
            PACDecodingException ex = assertThrows(PACDecodingException.class, () -> new KerberosApRequest(malformed, null));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

            // Encode the full message
            request.encode(buffer, headerStart);
    
            // Then
            int bodyOffset = Smb2Constants.SMB2_HEADER_LENGTH;
    
            // Verify session binding flag (0x0)
            assertEquals(0x0, buffer[bodyOffset + 2]);
        }
    
        @Test
        @DisplayName("Should handle null token correctly")
        void testWriteBytesWireFormatWithNullToken() throws Exception {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb1/smb1/SmbComWriteAndXResponseTest.java

         */
        @Test
        void testReadParameterWordsWireFormat() {
            SmbComWriteAndXResponse response = new SmbComWriteAndXResponse();
            byte[] buffer = new byte[] { 0x0A, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; // count = 10
    
            int bytesRead = response.readParameterWordsWireFormat(buffer, 0);
    
            // The count should be read from the buffer.
            assertEquals(10L, response.count);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

        hasher = HASH_FN.newHasher();
        hasher
            .putByte((byte) 0x01)
            .putByte((byte) 0x01)
            .putByte((byte) 0x00)
            .putByte((byte) 0x01)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00)
            .putByte((byte) 0x00);
        assertEquals(hashCode, hasher.hash().asLong());
    
        hasher = HASH_FN.newHasher();
        hasher
            .putChar((char) 0x0101)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationResponseTest.java

                basicInfo.attributes = 0x20; // Archive attribute
                basicInfo.createTime = 1000000L;
                basicInfo.lastWriteTime = 2000000L;
                basicInfo.lastAccessTime = 1500000L;
                basicInfo.changeTime = 2500000L;
    
                assertEquals(0x20, basicInfo.getAttributes());
                assertEquals(1000000L, basicInfo.getCreateTime());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/net/InetAddresses.java

       * @return {@code true} if the argument is a 6to4 address
       */
      public static boolean is6to4Address(Inet6Address ip) {
        byte[] bytes = ip.getAddress();
        return (bytes[0] == (byte) 0x20) && (bytes[1] == (byte) 0x02);
      }
    
      /**
       * Returns the IPv4 address embedded in a 6to4 address.
       *
       * @param ip {@link Inet6Address} to be examined for embedded IPv4 in 6to4 address
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/nt/SmbComNtTransactionResponse.java

            final int start = bufferIndex;
    
            buffer[bufferIndex] = (byte) 0x00; // Reserved
            bufferIndex++;
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
            buffer[bufferIndex++] = (byte) 0x00; // Reserved
    
            this.totalParameterCount = SMBUtil.readInt4(buffer, bufferIndex);
            if (this.bufDataStart == 0) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans/nt/NtTransQuerySecurityDesc.java

            final int start = dstIndex;
    
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
            dstIndex += 2;
            dst[dstIndex] = (byte) 0x00; // Reserved
            dstIndex++;
            dst[dstIndex++] = (byte) 0x00; // Reserved
            SMBUtil.writeInt4(this.securityInformation, dst, dstIndex);
            dstIndex += 4;
            return dstIndex - start;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

            void testReadBytesWireFormatSignedByteValue() {
                // Given
                byte[] buffer = new byte[10];
                // Write 4 in little-endian format
                buffer[0] = 0x04;
                buffer[1] = 0x00;
    
                // When & Then
                assertDoesNotThrow(() -> {
                    int bytesRead = response.readBytesWireFormat(buffer, 0);
                    assertEquals(4, bytesRead);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java

                    // negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1
                    Arguments.of(-1, 1000L, new byte[] { (byte) 0xFF, (byte) 0xFF, 0x01, 0x00, 0x00, 0x00 }));
        }
    
        /**
         * When lastWriteTime is zero the encoded unsigned time must be all 1s.
         */
        @Test
        @DisplayName("edge: writeParameterWordsWireFormat with lastWriteTime=0")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top