Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for totalRead (0.05 sec)

  1. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

            // Read all data
            byte[] buffer = new byte[size];
            int totalRead = 0;
            while (totalRead < size) {
                int read = sis.read(buffer, totalRead, size - totalRead);
                if (read == -1)
                    break;
                totalRead += read;
            }
    
            assertEquals(size, totalRead);
            assertArrayEquals(data, buffer);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            data[1] = 0x00;
            data[2] = 0x00;
            data[3] = 0x0A; // Length = 10
    
            ByteArrayInputStream bais = new ByteArrayInputStream(data);
    
            int totalRead = packet.readWireFormat(bais, data, 0);
    
            assertEquals(14, totalRead); // 4 header + 10 trailer
            assertEquals(0x85, packet.type);
            assertEquals(10, packet.length);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.5K bytes
    - Viewed (0)
Back to top