Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for readWireFormat (0.35 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb1/smb1/AndXServerMessageBlock.java

             * if there is an andx and it itself is an andx then just recur by
             * calling this method for it. otherwise just read it's parameter words
             * and bytes as usual. Note how we can't just call andx.readWireFormat
             * because there's no header.
             */
    
            if (errorCode != 0 || andxCommand == (byte) 0xFF) {
                andxCommand = (byte) 0xFF;
                andx = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/AndXServerMessageBlock.java

             * if there is an andx and it itself is an andx then just recur by
             * calling this method for it. otherwise just read it's parameter words
             * and bytes as usual. Note how we can't just call andx.readWireFormat
             * because there's no header.
             */
    
            if (this.errorCode != 0 || this.andxCommand == (byte) 0xFF) {
                this.andxCommand = (byte) 0xFF;
                this.andx = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/netbios/NameServiceClient.java

                    if (response == null || response.received) {
                        continue;
                    }
                    synchronized (response) {
                        response.readWireFormat(rcv_buf, 0);
                        response.received = true;
    
                        if (LogStream.level > 3) {
                            log.println(response);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/netbios/NameServiceClientImpl.java

                    if (response == null || response.received) {
                        continue;
                    }
                    synchronized (response) {
                        response.readWireFormat(this.rcv_buf, 0);
                        response.received = true;
    
                        if (log.isTraceEnabled()) {
                            log.trace(response.toString());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 38.5K bytes
    - Viewed (0)
Back to top