Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/main/java/jcifs/internal/smb2/rdma/tcp/TcpRdmaConnection.java

                ByteBuffer tempBuffer = ByteBuffer.allocate(bytesToRead);
    
                int totalRead = 0;
                while (tempBuffer.hasRemaining() && totalRead < bytesToRead) {
                    int read = socketChannel.read(tempBuffer);
                    if (read < 0) {
                        break;
                    }
                    totalRead += read;
                }
    
                tempBuffer.flip();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  2. 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)
  3. 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