Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 86 for 0xfffffffff (0.09 sec)

  1. android/guava-tests/test/com/google/common/primitives/UnsignedIntsTest.java

        0L,
        1L,
        2L,
        3L,
        0x12345678L,
        0x5a4316b8L,
        0x6cf78a4bL,
        0xff1a618bL,
        0xfffffffdL,
        0xfffffffeL,
        0xffffffffL
      };
    
      private static final int LEAST = (int) 0L;
      private static final int GREATEST = (int) 0xffffffffL;
    
      public void testCheckedCast() {
        for (long value : UNSIGNED_INTS) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacDataInputStreamTest.java

        }
    
        @Test
        public void testReadUnsignedInt() throws IOException {
            // Little-endian 0xFFFFFFFF -> 0xFF 0xFF 0xFF 0xFF
            byte[] data = new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals(0xFFFFFFFFL, pdis.readUnsignedInt());
        }
    
        @Test
        public void testReadFiletime() throws IOException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/util/Encdec.java

         * @return the number of bytes written (8)
         */
        public static int enc_uint64be(final long l, final byte[] dst, final int di) {
            enc_uint32be((int) (l & 0xFFFFFFFFL), dst, di + 4);
            enc_uint32be((int) (l >> 32L & 0xFFFFFFFFL), dst, di);
            return 8;
        }
    
        /**
         * Encodes a 64-bit unsigned integer in little-endian byte order.
         *
         * @param l the long value to encode
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

        }
    
        @ParameterizedTest
        @ValueSource(longs = { 0L, 1L, 0xFFFFFFFFL, 0x12345678L, 0x80000000L })
        void testWriteReadInt4RoundTrip(long input) {
            byte[] buffer = new byte[8];
            SMBUtil.writeInt4(input, buffer, 0);
            int result = SMBUtil.readInt4(buffer, 0);
            assertEquals((int) (input & 0xFFFFFFFFL), result);
        }
    
        @ParameterizedTest
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/Encdec.java

         * @return the number of bytes written (8)
         */
        public static int enc_uint64be(final long l, final byte[] dst, final int di) {
            enc_uint32be((int) (l & 0xFFFFFFFFL), dst, di + 4);
            enc_uint32be((int) (l >> 32L & 0xFFFFFFFFL), dst, di);
            return 8;
        }
    
        /**
         * Encodes a 64-bit unsigned integer in little-endian byte order.
         *
         * @param l the long value to encode
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 18.5K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/ValidateNegotiateInfoRequestTest.java

                    new ValidateNegotiateInfoRequest(0xFFFFFFFF, defaultClientGuid, DEFAULT_SECURITY_MODE, defaultDialects);
    
            byte[] buffer = new byte[request.size()];
            request.encode(buffer, 0);
    
            // Verify max capabilities value (comparing as unsigned long)
            assertEquals(0xFFFFFFFFL, SMBUtil.readInt4(buffer, 0) & 0xFFFFFFFFL);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationResponseTest.java

            byte[] buffer = new byte[256];
            long overflowSize = 0xFFFFFFFFL; // This will become -1 as signed int
    
            SMBUtil.writeInt2(0, buffer, 0);
            SMBUtil.writeUTime(0, buffer, 2);
            SMBUtil.writeInt4(overflowSize, buffer, 6);
    
            response.readParameterWordsWireFormat(buffer, 0);
    
            // 0xFFFFFFFF becomes -1 when interpreted as signed int
            assertEquals(-1L, response.getSize());
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.9K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

         */
        @Test
        void testGetMessageByDcerpcError_smallerThanAny() {
            int unknownCode = -1;
            String message = DcerpcException.getMessageByDcerpcError(unknownCode);
            assertEquals("0xFFFFFFFF", message, "Should return hex string for code smaller than any known.");
        }
    
        /**
         * Test getMessageByDcerpcError() with an error code larger than any known.
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/com/SmbComSeekResponseTest.java

                    Arguments.of(0x12345678, new byte[] { 0x78, 0x56, 0x34, 0x12 }),
                    Arguments.of(0xFFFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }),
                    Arguments.of(0x7FFFFFFF, new byte[] { (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0x7F }));
        }
    
        @ParameterizedTest
        @MethodSource("int32Provider")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            return Stream.of(Arguments.of(0), Arguments.of(1), Arguments.of(255), Arguments.of(256), Arguments.of(65535), Arguments.of(65536),
                    Arguments.of(0x7FFFFFFF), Arguments.of(0xFFFFFFFF));
        }
    
        @Test
        @DisplayName("readInt2 should correctly read 16-bit integer")
        void testReadInt2() {
            byte[] src = { (byte) 0x12, (byte) 0x34, (byte) 0x56 };
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top