Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for readQuestionSectionWireFormat (0.14 sec)

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

            // Test that readBodyWireFormat calls readQuestionSectionWireFormat
            NameQueryRequest request = spy(new NameQueryRequest(mockConfig, mockName));
            byte[] src = new byte[100];
            int srcIndex = 0;
    
            // Mock the superclass method to control its behavior
            doReturn(15).when((NameServicePacket) request).readQuestionSectionWireFormat(any(byte[].class), anyInt());
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/netbios/NameQueryRequest.java

            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readQuestionSectionWireFormat(src, srcIndex);
        }
    
        @Override
        int writeRDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/netbios/NameQueryRequest.java

            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readQuestionSectionWireFormat(src, srcIndex);
        }
    
        @Override
        int writeRDataWireFormat(final byte[] dst, final int dstIndex) {
            return 0;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/netbios/NameServicePacket.java

            dstIndex += 2;
            writeInt2(this.questionClass, dst, dstIndex);
            dstIndex += 2;
            return dstIndex - start;
        }
    
        int readQuestionSectionWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += this.questionName.readWireFormat(src, srcIndex);
            this.questionType = readInt2(src, srcIndex);
            srcIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            writeInt2(questionType, dst, dstIndex);
            dstIndex += 2;
            writeInt2(questionClass, dst, dstIndex);
            dstIndex += 2;
            return dstIndex - start;
        }
    
        int readQuestionSectionWireFormat(final byte[] src, int srcIndex) {
            final int start = srcIndex;
            srcIndex += questionName.readWireFormat(src, srcIndex);
            questionType = readInt2(src, srcIndex);
            srcIndex += 2;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameServicePacketTest.java

            when(mockQuestionName.readWireFormat(any(byte[].class), anyInt())).thenReturn(10); // Mock name length
    
            int read = packet.readQuestionSectionWireFormat(src, 0);
            assertEquals(14, read); // 10 (name) + 2 (type) + 2 (class)
            verify(mockQuestionName).readWireFormat(src, 0);
            assertEquals(NameServicePacket.NB, packet.questionType);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top