Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for readWireFormat (1.45 sec)

  1. src/main/java/jcifs/smb1/smb1/Trans2GetDfsReferralResponse.java

            private int altPathOffset;
            private int nodeOffset;
            private String altPath;
    
            int ttl;
            String path = null;
            String node = null;
    
            int readWireFormat(final byte[] buffer, int bufferIndex, final int len) {
                final int start = bufferIndex;
    
                version = readInt2(buffer, bufferIndex);
                if (version != 3 && version != 1) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/SessionRequestPacket.java

                throw new IOException("invalid session request wire format");
            }
            bufferIndex += this.calledName.readWireFormat(buffer, bufferIndex);
            bufferIndex += this.callingName.readWireFormat(buffer, bufferIndex);
            return bufferIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServicePacketTest.java

            // Mock question name and its readWireFormat
            when(mockQuestionName.readWireFormat(any(byte[].class), anyInt())).thenReturn(10);
            NameServicePacket.writeInt2(NameServicePacket.NB, src, 12 + 10); // questionType
            NameServicePacket.writeInt2(NameServicePacket.IN, src, 12 + 10 + 2); // questionClass
    
            int read = packet.readWireFormat(src, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/netbios/SessionRequestPacket.java

            if (in.read(buffer, bufferIndex, length) != length) {
                throw new IOException("invalid session request wire format");
            }
            bufferIndex += calledName.readWireFormat(buffer, bufferIndex);
            bufferIndex += callingName.readWireFormat(buffer, bufferIndex);
            return bufferIndex - start;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NameServicePacket.java

            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += readHeaderWireFormat(src, srcIndex);
            srcIndex += readBodyWireFormat(src, srcIndex);
            return srcIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            final int start = dstIndex;
            dstIndex += writeHeaderWireFormat(dst, dstIndex);
            dstIndex += writeBodyWireFormat(dst, dstIndex);
            return dstIndex - start;
        }
    
        int readWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += readHeaderWireFormat(src, srcIndex);
            srcIndex += readBodyWireFormat(src, srcIndex);
            return srcIndex - start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/SessionServicePacket.java

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

            // Encode type 0x20
            src[31] = 'C';
            src[32] = 'A';
    
            // No scope
            src[33] = 0x00;
    
            Name name = new Name(mockConfig);
            int length = name.readWireFormat(src, 0);
    
            assertEquals("TEST", name.name);
            assertEquals(0x20, name.hexCode);
            assertNull(name.scope);
            assertEquals(34, length);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/netbios/NodeStatusRequestTest.java

            src[2] = 0x00; // Flags
            src[3] = 0x00; // Flags
            src[4] = 0x00;
            src[5] = 0x01; // Question count
    
            // Act
            int result = nodeStatusRequest.readWireFormat(src, 0);
    
            // Assert
            assertTrue(result >= NameServicePacket.HEADER_LENGTH);
        }
    
        @Test
        void integration_writeAndReadComplete() {
            // Arrange
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/netbios/SessionServicePacketTest.java

            byte[] dst = new byte[100];
            packet.writeWireFormat(dst, 0);
    
            assertEquals((byte) 0x01, dst[1]); // Extended length bit should be set
        }
    
        @Test
        @DisplayName("readWireFormat should read header and trailer")
        void testReadWireFormat() throws IOException {
            byte[] data = new byte[50];
            data[0] = (byte) 0x85; // SESSION_KEEP_ALIVE
            data[1] = 0x00;
    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