Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for readTrailerWireFormat (0.14 sec)

  1. src/test/java/jcifs/netbios/SessionRequestPacketTest.java

            readPacket.length = written;
    
            int bytesRead = readPacket.readTrailerWireFormat(bais, buffer, 0);
    
            assertEquals(written, bytesRead);
        }
    
        @Test
        @DisplayName("readTrailerWireFormat should throw IOException on incomplete data")
        void testReadTrailerWireFormatIncompleteData() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/netbios/SessionServicePacketTest.java

                    dst[dstIndex + i] = (byte) i;
                }
                return trailerLength;
            }
    
            @Override
            int readTrailerWireFormat(InputStream in, byte[] buffer, int bufferIndex) throws IOException {
                // Simple mock implementation
                byte[] temp = new byte[length];
                int read = in.read(temp, 0, length);
    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