Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 186 for readFully (0.18 sec)

  1. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/ObjectInputStreamAdapter.kt

        override fun readLine(): String = unsupported("ObjectInputStream.readLine")
    
        override fun readFully(buf: ByteArray) = unsupported("ObjectInputStream.readFully")
    
        override fun readFully(buf: ByteArray, off: Int, len: Int) = unsupported("ObjectInputStream.readFully")
    
        override fun readUnshared(): Any = unsupported("ObjectInputStream.readUnshared")
    
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-06-07 23:09
    - 4.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/pac/PacDataInputStream.java

    
        public int available () throws IOException {
            return this.dis.available();
        }
    
    
        public void readFully ( byte[] b ) throws IOException {
            this.dis.readFully(b);
        }
    
    
        public void readFully ( byte[] b, int off, int len ) throws IOException {
            this.dis.readFully(b, off, len);
        }
    
    
        public char readChar () throws IOException {
            align(2);
    Registered: 2024-06-12 15:45
    - Last Modified: 2018-07-21 21:19
    - 5.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

            NullPointerException.class, () -> ByteStreams.readFully(newTestStream(10), null, 0, 10));
    
        assertThrows(NullPointerException.class, () -> ByteStreams.readFully(null, b, 0, 10));
    
        assertThrows(
            IndexOutOfBoundsException.class, () -> ByteStreams.readFully(newTestStream(10), b, -1, 10));
    
        assertThrows(
            IndexOutOfBoundsException.class, () -> ByteStreams.readFully(newTestStream(10), b, 0, -1));
    
        assertThrows(
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 21.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        CharSequenceReader reader = new CharSequenceReader(string);
        assertTrue(reader.markSupported());
    
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset and read again
        reader.reset();
        assertEquals(string, readFully(reader));
        assertFullyRead(reader);
    
        // reset, skip, mark, then read the rest
        reader.reset();
        assertEquals(5, reader.skip(5));
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 6.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    byte[] buf = new byte[4];
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x1, 0x2, 0x3, 0x4
                    }, buf);
                    assertEquals(4, raf.getFilePointer());
    
                    raf.readFully(buf);
                    assertArrayEquals(new byte[] {
                        0x5, 0x6, 0x7, 0x8
    Registered: 2024-06-12 15:45
    - Last Modified: 2018-07-01 13:12
    - 11.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/ByteArrayDataInput.java

     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public interface ByteArrayDataInput extends DataInput {
      @Override
      void readFully(byte b[]);
    
      @Override
      void readFully(byte b[], int off, int len);
    
      // not guaranteed to skip n bytes so result should NOT be ignored
      // use ByteStreams.skipFully or one of the read methods instead
      @Override
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-02-28 20:13
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

        /* Setup input streams */
        DataInput in = new DataInputStream(new ByteArrayInputStream(data));
    
        /* Read in various values NORMALLY */
        byte[] b = new byte[2];
        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
        assertEquals(true, in.readBoolean());
        assertEquals(false, in.readBoolean());
        assertEquals(100, in.readByte());
    Registered: 2024-06-12 16:38
    - Last Modified: 2017-12-04 17:37
    - 4.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/LittleEndianDataOutputStreamTest.java

        /* Setup input streams */
        DataInput in = new DataInputStream(new ByteArrayInputStream(data));
    
        /* Read in various values NORMALLY */
        byte[] b = new byte[2];
        in.readFully(b);
        assertEquals(-100, b[0]);
        assertEquals(100, b[1]);
        assertEquals(true, in.readBoolean());
        assertEquals(false, in.readBoolean());
        assertEquals(100, in.readByte());
    Registered: 2024-06-12 16:38
    - Last Modified: 2017-12-04 17:37
    - 4.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

      }
    
      public void testReadFully() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        byte[] b = new byte[data.length];
        in.readFully(b);
        assertEquals(Bytes.asList(data), Bytes.asList(b));
      }
    
      public void testReadUnsignedByte_eof() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(new byte[0]));
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-09-06 17:04
    - 4.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/io/LittleEndianDataInputStream.java

        throw new UnsupportedOperationException("readLine is not supported");
      }
    
      @Override
      public void readFully(byte[] b) throws IOException {
        ByteStreams.readFully(this, b);
      }
    
      @Override
      public void readFully(byte[] b, int off, int len) throws IOException {
        ByteStreams.readFully(this, b, off, len);
      }
    
      @Override
      public int skipBytes(int n) throws IOException {
        return (int) in.skip(n);
    Registered: 2024-06-12 16:38
    - Last Modified: 2023-05-17 14:35
    - 7.3K bytes
    - Viewed (0)
Back to top