Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testReadFully (0.16 sec)

  1. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        out.writeLong(0xDEADBEEFCAFEBABEL);
        out.writeUTF("Herby Derby");
        out.writeFloat(Float.intBitsToFloat(0xCAFEBABE));
        out.writeDouble(Double.longBitsToDouble(0xDEADBEEFCAFEBABEL));
      }
    
      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));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            int result = smbRandomAccessFile.skipBytes(skipAmount);
    
            assertEquals(skipAmount, result);
            assertEquals(skipAmount, smbRandomAccessFile.getFilePointer());
        }
    
        @Test
        void testReadFully() throws SmbException {
            byte[] buffer = new byte[5];
    
            // Mock the read operation
            doAnswer(new Answer<Void>() {
                @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/pac/PacDataInputStreamTest.java

            PacDataInputStream pdis = createInputStream(data);
            assertEquals(4, pdis.available());
            pdis.readByte();
            assertEquals(3, pdis.available());
        }
    
        @Test
        public void testReadFully() throws IOException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            PacDataInputStream pdis = createInputStream(data);
            byte[] buffer = new byte[4];
            pdis.readFully(buffer);
    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