Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for readTrailerWireFormat (0.49 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/main/java/jcifs/netbios/SessionServicePacket.java

        }
    
        int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {
            readHeaderWireFormat(in, buffer, bufferIndex);
            return HEADER_LENGTH + readTrailerWireFormat(in, buffer, bufferIndex);
        }
    
        int writeHeaderWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) this.type;
            dstIndex++;
            if (this.length > 0x0000FFFF) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/SessionRetargetResponsePacketTest.java

            SessionRetargetResponsePacket packet = new SessionRetargetResponsePacket();
    
            // Create a buffer large enough to hold the read bytes
            byte[] buffer = new byte[6];
            int bytesRead = packet.readTrailerWireFormat(bais, buffer, 0);
    
            // Verify that 6 bytes were read, which is the expected length.
            assertEquals(6, bytesRead);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SessionServicePacket.java

        }
    
        int readWireFormat(final InputStream in, final byte[] buffer, final int bufferIndex) throws IOException {
            readHeaderWireFormat(in, buffer, bufferIndex);
            return HEADER_LENGTH + readTrailerWireFormat(in, buffer, bufferIndex);
        }
    
        int writeHeaderWireFormat(final byte[] dst, int dstIndex) {
            dst[dstIndex] = (byte) type;
            dstIndex++;
            if (length > 0x0000FFFF) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/SessionRetargetResponsePacket.java

            this.length = 6;
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
            if (in.read(buffer, bufferIndex, this.length) != this.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/SessionRetargetResponsePacket.java

            length = 6;
        }
    
        @Override
        int writeTrailerWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
            if (in.read(buffer, bufferIndex, length) != length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/SessionRequestPacket.java

            dstIndex += this.calledName.writeWireFormat(dst, dstIndex);
            dstIndex += this.callingName.writeWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
            final int start = bufferIndex;
            if (in.read(buffer, bufferIndex, this.length) != this.length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java

            dstIndex += calledName.writeWireFormat(dst, dstIndex);
            dstIndex += callingName.writeWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        @Override
        int readTrailerWireFormat(final InputStream in, final byte[] buffer, int bufferIndex) throws IOException {
            final int start = bufferIndex;
            if (in.read(buffer, bufferIndex, length) != length) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  9. 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