Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for PacUnicodeString (1.63 sec)

  1. src/main/java/jcifs/pac/PacUnicodeString.java

     * maximum length, and pointer to the actual string data.
     */
    public class PacUnicodeString {
    
        private final short length;
        private final short maxLength;
        private final int pointer;
    
        /**
         * Constructs a new PacUnicodeString instance.
         *
         * @param length the actual length of the string in bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacUnicodeStringTest.java

        }
    
        /**
         * Tests the {@link PacUnicodeString#check(String)} method with a valid string.
         *
         * @throws PACDecodingException if the check fails, which is not expected in this test.
         */
        @Test
        void testCheck_withValidString() throws PACDecodingException {
            // Corresponds to a string of length 5 (10 bytes for UTF-16)
            PacUnicodeString pacString = new PacUnicodeString((short) 10, (short) 20, 100);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacLogonInfoTest.java

            assertEquals("", result);
        }
    
        @Test
        @DisplayName("Test PacUnicodeString check method with null pointer")
        void testPacUnicodeStringCheckWithNullPointer() throws Exception {
            // When pointer is 0, the string should be null
            PacUnicodeString unicodeString = new PacUnicodeString((short) 0, (short) 0, 0);
    
            // check() expects null when pointer is 0 but doesn't accept empty string
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/pac/PacLogonInfo.java

                final PacUnicodeString userNameString = pacStream.readUnicodeString();
                final PacUnicodeString userDisplayNameString = pacStream.readUnicodeString();
                final PacUnicodeString logonScriptString = pacStream.readUnicodeString();
                final PacUnicodeString profilePathString = pacStream.readUnicodeString();
                final PacUnicodeString homeDirectoryString = pacStream.readUnicodeString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/PacDataInputStream.java

         * @return the PAC Unicode string object
         * @throws IOException if an I/O error occurs
         * @throws PACDecodingException if the string structure is malformed
         */
        public PacUnicodeString readUnicodeString() throws IOException, PACDecodingException {
            final short length = readShort();
            final short maxLength = readShort();
            final int pointer = readInt();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            // length=4, maxLength=4, pointer=0x1234
            byte[] data = new byte[] { 0x04, 0x00, 0x04, 0x00, 0x34, 0x12, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            PacUnicodeString str = pdis.readUnicodeString();
            assertEquals(4, str.getLength());
            assertEquals(4, str.getMaxLength());
            assertEquals(0x1234, str.getPointer());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
Back to top