Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for writeQuestionSectionWireFormat (0.96 sec)

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

            // Test that writeBodyWireFormat calls writeQuestionSectionWireFormat
            NameQueryRequest request = spy(new NameQueryRequest(mockConfig, mockName));
            byte[] dst = new byte[100];
            int dstIndex = 0;
    
            // Mock the superclass method to control its behavior
            doReturn(10).when((NameServicePacket) request).writeQuestionSectionWireFormat(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/test/java/jcifs/netbios/NodeStatusRequestTest.java

            int originalHexCode = 0x20;
            mockName.hexCode = originalHexCode;
    
            // Setup spy to verify writeQuestionSectionWireFormat is called
            NodeStatusRequest spyRequest = spy(nodeStatusRequest);
            doReturn(40).when(spyRequest).writeQuestionSectionWireFormat(any(byte[].class), anyInt());
    
            // Act
            int result = spyRequest.writeBodyWireFormat(dst, 0);
    
            // Assert
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/netbios/NameQueryRequest.java

            super(config);
            this.questionName = name;
            this.questionType = NB;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readQuestionSectionWireFormat(src, srcIndex);
        }
    
        @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)
  4. src/main/java/jcifs/netbios/NodeStatusRequest.java

            final int tmp = this.questionName.hexCode;
            this.questionName.hexCode = 0x00; // type has to be 0x00 for node status
            final int result = writeQuestionSectionWireFormat(dst, dstIndex);
            this.questionName.hexCode = tmp;
            return result;
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/netbios/NodeStatusRequest.java

        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            final int tmp = questionName.hexCode;
            questionName.hexCode = 0x00; // type has to be 0x00 for node status
            final int result = writeQuestionSectionWireFormat(dst, dstIndex);
            questionName.hexCode = tmp;
            return result;
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return 0;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/netbios/NameQueryRequest.java

        NameQueryRequest(final Name name) {
            questionName = name;
            questionType = NB;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @Override
        int readBodyWireFormat(final byte[] src, final int srcIndex) {
            return readQuestionSectionWireFormat(src, srcIndex);
        }
    
        @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)
  7. src/main/java/jcifs/netbios/NameServicePacket.java

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

            authorityCount = readInt2(src, srcIndex + AUTHORITY_OFFSET);
            additionalCount = readInt2(src, srcIndex + ADDITIONAL_OFFSET);
            return HEADER_LENGTH;
        }
    
        int writeQuestionSectionWireFormat(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
            dstIndex += questionName.writeWireFormat(dst, dstIndex);
            writeInt2(questionType, dst, dstIndex);
            dstIndex += 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)
  9. src/test/java/jcifs/netbios/NameServicePacketTest.java

            packet.questionClass = NameServicePacket.IN;
    
            when(mockQuestionName.writeWireFormat(any(byte[].class), anyInt())).thenReturn(10); // Mock name length
    
            int written = packet.writeQuestionSectionWireFormat(dst, 0);
            assertEquals(14, written); // 10 (name) + 2 (type) + 2 (class)
            verify(mockQuestionName).writeWireFormat(dst, 0);
            assertEquals((byte) 0x00, dst[10]); // questionType high byte
    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