Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for toHexChars (0.05 sec)

  1. src/main/java/jcifs/util/Hexdump.java

         * @return a hexadecimal string representation of the value, padded to the specified size
         */
        public static String toHexString(final int val, final int size) {
            final char[] c = new char[size];
            toHexChars(val, c, 0, size);
            return new String(c);
        }
    
        /**
         * Converts a long value to a hexadecimal string representation with specified padding.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/util/HexdumpTest.java

        @DisplayName("Should handle edge cases in toHexChars")
        void testToHexCharsEdgeCases() {
            // Test with zero
            char[] dst1 = new char[4];
            java.util.Arrays.fill(dst1, 'X');
            Hexdump.toHexChars(0, dst1, 0, 4);
            assertEquals("0000", new String(dst1));
    
            // Test with all F's
            char[] dst2 = new char[8];
            Hexdump.toHexChars(0xFFFFFFFF, dst2, 0, 8);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/util/Hexdump.java

            final char[] c = new char[r * (74 + NL_LENGTH)];
            final char[] d = new char[16];
            int i;
            int si = 0;
            int ci = 0;
    
            do {
                toHexChars(si, c, ci, 5);
                ci += 5;
                c[ci] = ':';
                ci++;
                do {
                    if (si == length) {
                        final int n = 16 - s;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
Back to top