Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for readChar (0.55 sec)

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

        /**
         * Reads a 16-bit character value with proper alignment.
         * @return the character value
         * @throws IOException if an I/O error occurs
         */
        public char readChar() throws IOException {
            align(2);
            return this.dis.readChar();
        }
    
        /**
         * Reads a single byte value.
         * @return the byte value
         * @throws IOException if an I/O error occurs
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/LittleEndianDataInputStream.java

      /**
       * Reads a char as specified by {@link DataInputStream#readChar()}, except using little-endian
       * byte order.
       *
       * @return the next two bytes of the input stream, interpreted as a {@code char} in little-endian
       *     byte order
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      public char readChar() throws IOException {
        return (char) readUnsignedShort();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/ByteArrayDataInput.java

      @Override
      short readShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readUnsignedShort();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      char readChar();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      int readInt();
    
      @CanIgnoreReturnValue // to skip some bytes
      @Override
      long readLong();
    
      @CanIgnoreReturnValue // to skip some bytes
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Dec 27 20:25:25 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/pac/PacDataInputStreamTest.java

        public void testReadChar() throws IOException {
            // 0x0041 is 'A'
            byte[] data = new byte[] { 0x00, 0x41, 0x00, 0x00 };
            PacDataInputStream pdis = createInputStream(data);
            assertEquals('A', pdis.readChar());
        }
    
        @Test
        public void testReadByte() throws IOException {
            byte[] data = new byte[] { 0x7F };
            PacDataInputStream pdis = createInputStream(data);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        assertEquals(false, in.readBoolean());
        assertEquals(100, in.readByte());
        assertEquals(-100, in.readByte());
        assertEquals(200, in.readUnsignedByte());
        assertEquals('\u6100', in.readChar());
        assertEquals(-12150, in.readShort());
        assertEquals(20675, in.readUnsignedShort());
        assertEquals(0xBEBAFECA, in.readInt());
        assertEquals(0xBEBAFECAEFBEADDEL, in.readLong());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
Back to top