Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for readChars (0.22 sec)

  1. platforms/core-runtime/serialization/src/main/java/org/gradle/internal/serialize/DecoderExtensions.java

        public static char[] readLengthPrefixedChars(Decoder decoder) throws IOException {
            int length = decoder.readInt();
            char[] array = new char[length];
            readChars(decoder, array);
            return array;
        }
    
        public static void readChars(Decoder decoder, char[] array) throws IOException {
            for (int i = 0; i < array.length; i++) {
                array[i] = (char) decoder.readInt();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 15 16:06:56 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/BaseEncoding.java

                  return -1;
                }
                readChars++;
                char ch = (char) readChar;
                if (paddingChar != null && paddingChar.charValue() == ch) {
                  if (!hitPadding
                      && (readChars == 1 || !alphabet.isValidPaddingStartPosition(readChars - 1))) {
                    throw new DecodingException("Padding cannot start at index " + readChars);
                  }
                  hitPadding = true;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/BaseEncoding.java

                  return -1;
                }
                readChars++;
                char ch = (char) readChar;
                if (paddingChar != null && paddingChar.charValue() == ch) {
                  if (!hitPadding
                      && (readChars == 1 || !alphabet.isValidPaddingStartPosition(readChars - 1))) {
                    throw new DecodingException("Padding cannot start at index " + readChars);
                  }
                  hitPadding = true;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Mar 15 16:33:32 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/pac/PacDataInputStream.java

        }
    
    
        public void readFully ( byte[] b, int off, int len ) throws IOException {
            this.dis.readFully(b, off, len);
        }
    
    
        public char readChar () throws IOException {
            align(2);
            return this.dis.readChar();
        }
    
    
        public byte readByte () throws IOException {
            return this.dis.readByte();
        }
    
    
        public short readShort () throws IOException {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jul 21 21:19:58 UTC 2018
    - 5.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

        override fun mark(readlimit: Int) = inputStream.mark(readlimit)
    
        override fun reset() = inputStream.reset()
    
        override fun read(): Int = inputStream.read()
    
        override fun readChar(): Char = readContext.readInt().toChar()
    
        override fun readUnsignedByte(): Int = readByte().let {
            require(it >= 0)
            it.toInt()
        }
    
        override fun readByte(): Byte = readContext.readByte()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  8. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  9. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top