Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for writeQuestionSectionWireFormat (0.43 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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