Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readUnicodeString (0.51 sec)

  1. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            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)
  2. 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();
    
            if (maxLength < length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
Back to top