Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testSkipBytes (0.13 sec)

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

        assertEquals("Herby Derby", in.readUTF());
        assertEquals(0xBEBAFECA, Float.floatToIntBits(in.readFloat()));
        assertEquals(0xBEBAFECAEFBEADDEL, Double.doubleToLongBits(in.readDouble()));
      }
    
      public void testSkipBytes() throws IOException {
        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        DataOutputStream out = new DataOutputStream(baos);
    
        /* Write out various test values NORMALLY */
    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

            long newLength = 2048L;
            smbRandomAccessFile.setLength(newLength);
            // Verify length was set (actual behavior depends on implementation)
        }
    
        @Test
        void testSkipBytes() throws SmbException {
            int skipAmount = 100;
            int result = smbRandomAccessFile.skipBytes(skipAmount);
    
            assertEquals(skipAmount, result);
    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);
            SID sid = pdis.readSid();
            assertEquals("S-1-1-0", sid.toString());
        }
    
        @Test
        public void testSkipBytes() throws IOException {
            byte[] data = new byte[] { 0x01, 0x02, 0x03, 0x04 };
            PacDataInputStream pdis = createInputStream(data);
            int skipped = pdis.skipBytes(2);
            assertEquals(2, skipped);
    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