Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for NB (0.01 sec)

  1. src/main/java/jcifs/netbios/NameServicePacket.java

            questionTypeString = switch (this.questionType) {
            case NB -> "NB";
            case NBSTAT -> "NBSTAT";
            default -> "0x" + Hexdump.toHexString(this.questionType, 4);
            };
            recordTypeString = switch (this.recordType) {
            case A -> "A";
            case NS -> "NS";
            case NULL -> "NULL";
            case NB -> "NB";
            case NBSTAT -> "NBSTAT";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/netbios/NameServicePacket.java

            };
            questionTypeString = switch (questionType) {
            case NB -> "NB";
            case NBSTAT -> "NBSTAT";
            default -> "0x" + Hexdump.toHexString(questionType, 4);
            };
            recordTypeString = switch (recordType) {
            case A -> "A";
            case NS -> "NS";
            case NULL -> "NULL";
            case NB -> "NB";
            case NBSTAT -> "NBSTAT";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/netbios/NameServicePacketTest.java

            assertEquals((byte) NameServicePacket.NB, dst[11]); // questionType low byte
            assertEquals((byte) 0x00, dst[12]); // questionClass high byte
            assertEquals((byte) NameServicePacket.IN, dst[13]); // questionClass low byte
        }
    
        @Test
        void testReadQuestionSectionWireFormat() {
            byte[] src = new byte[20];
            NameServicePacket.writeInt2(NameServicePacket.NB, src, 10); // Mock type
    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/test/java/jcifs/smb/Kerb5ContextTest.java

            System.arraycopy(der, 0, out, i, der.length);
            i += der.length;
            out[i++] = (byte) ((nb.length >> 24) & 0xFF);
            out[i++] = (byte) ((nb.length >> 16) & 0xFF);
            out[i++] = (byte) ((nb.length >> 8) & 0xFF);
            out[i++] = (byte) (nb.length & 0xFF);
            System.arraycopy(nb, 0, out, i, nb.length);
            return out;
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            // Server vs Workgroup depends on NetBIOS name type
            Address addr = mock(Address.class);
            NetbiosAddress nb = mock(NetbiosAddress.class);
            when(addr.unwrap(NetbiosAddress.class)).thenReturn(nb);
            when(nb.getNameType()).thenReturn(0x1d); // workgroup code
            // getFirstAddress branch: host given and path non-root -> possibleNTDomain=false
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/dcerpc/ndr/NdrBuffer.java

         * @return the derived NdrBuffer
         */
        public NdrBuffer derive(final int idx) {
            final NdrBuffer nb = new NdrBuffer(this.buf, this.start);
            nb.index = idx;
            nb.deferred = this.deferred;
            return nb;
        }
    
        /**
         * Resets the buffer position to the start.
         */
        public void reset() {
            this.index = this.start;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/ndr/NdrBuffer.java

         * @param idx the index position for the derived buffer
         * @return the derived NdrBuffer
         */
        public NdrBuffer derive(final int idx) {
            final NdrBuffer nb = new NdrBuffer(buf, start);
            nb.index = idx;
            nb.deferred = deferred;
            return nb;
        }
    
        /**
         * Resets the buffer position to the start.
         */
        public void reset() {
            this.index = start;
            length = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/netbios/NameQueryRequest.java

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

    class NameQueryRequest extends NameServicePacket {
    
        NameQueryRequest(final Configuration config, final Name name) {
            super(config);
            this.questionName = name;
            this.questionType = NB;
        }
    
        @Override
        int writeBodyWireFormat(final byte[] dst, final int dstIndex) {
            return writeQuestionSectionWireFormat(dst, dstIndex);
        }
    
        @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)
  10. src/test/java/jcifs/internal/util/StringUtilTest.java

            return Stream.of(Arguments.of(",", "A,B,C"), Arguments.of(", ", "A, B, C"), Arguments.of(" ", "A B C"), Arguments.of("|", "A|B|C"),
                    Arguments.of("::", "A::B::C"), Arguments.of("\n", "A\nB\nC"), Arguments.of("\r\n", "A\r\nB\r\nC"));
        }
    
        @Test
        @DisplayName("Should handle StringBuilder as CharSequence")
        void testJoinWithStringBuilder() {
            StringBuilder sb1 = new StringBuilder("first");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 9K bytes
    - Viewed (0)
Back to top