Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for remark1 (0.05 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbShareInfoTest.java

         */
        @Test
        void testEquals() {
            SmbShareInfo instance1 = new SmbShareInfo("SHARE1", 0, "remark1");
            SmbShareInfo instance2 = new SmbShareInfo("SHARE1", 1, "remark2");
            SmbShareInfo instance3 = new SmbShareInfo("SHARE2", 0, "remark1");
            Object notAShareInfo = new Object();
    
            assertTrue(instance1.equals(instance2)); // Should be equal based on netName
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/dcerpc/msrpc/srvsvcTest.java

            ctr1.array[0].netname = "Share1";
            ctr1.array[0].type = 0;
            ctr1.array[0].remark = "Remark1";
            ctr1.array[1] = new srvsvc.ShareInfo1();
            ctr1.array[1].netname = "Share2";
            ctr1.array[1].type = 1;
            ctr1.array[1].remark = "Remark2";
    
            // Set up mocks
            mockDeferredBuffer.index = 0; // Set field directly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/net/SmbShareInfoTest.java

        @DisplayName("Test equals method with same netName")
        void testEqualsWithSameNetName() {
            SmbShareInfo info1 = new SmbShareInfo("Share1", 0, "Remark1");
            SmbShareInfo info2 = new SmbShareInfo("Share1", 1, "Remark2");
    
            // Same netName, different type and remark
            assertTrue(info1.equals(info2));
            assertTrue(info2.equals(info1));
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/dcerpc/msrpc/srvsvc.java

            /**
             * A comment or description of the share.
             */
            public String remark;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_referent(netname, 1);
                _dst.enc_ndr_long(type);
                _dst.enc_ndr_referent(remark, 1);
    
                if (netname != null) {
                    _dst = _dst.deferred;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb1/net/NetShareEnumResponseTest.java

            int totalRemarkSize = 0;
            for (String remark : remarks) {
                totalRemarkSize += remark.length() + 1;
            }
    
            byte[] buffer = new byte[totalEntrySize + totalRemarkSize + 100];
            int bufferIndex = 0;
            int remarkOffset = totalEntrySize;
    
            // Write all entries
            for (int i = 0; i < numShares; i++) {
                // Write share name (14 bytes)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/NetShareEnumResponseTest.java

            // Entry 1: SHARE1, type 0 (Disk), remark "Remark 1"
            System.arraycopy("SHARE1".getBytes(StandardCharsets.US_ASCII), 0, data, 0, 6);
            data[14] = 0x00;
            data[15] = 0x00; // type = 0
            data[16] = 40;
            data[17] = 0;
            data[18] = 0;
            data[19] = 0; // remark offset
    
            // Entry 2: IPC$, type 3 (IPC), remark "Inter-Process Communication"
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/dcerpc/msrpc/srvsvc.java

                final int _remarkp = _src.dec_ndr_long();
    
                if (_netnamep != 0) {
                    _src = _src.deferred;
                    this.netname = _src.dec_ndr_string();
    
                }
                if (_remarkp != 0) {
                    _src = _src.deferred;
                    this.remark = _src.dec_ndr_string();
    
                }
            }
        }
    
        /**
         * Container for ShareInfo1 structures.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

    he dipped it into his cup of tea, and looked at it again:  but he
    could think of nothing better to say than his first remark, `It
    was the BEST butter, you know.'
    
      Alice had been looking over his shoulder with some curiosity.
    `What a funny watch!' she remarked.  `It tells the day of the
    month, and doesn't tell what o'clock it is!'
    
      `Why should it?' muttered the Hatter.  `Does YOUR watch tell
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 145.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            shareInfo1.netname = "Share1";
            shareInfo1.type = 0;
            shareInfo1.remark = "Remark for Share1";
    
            srvsvc.ShareInfo1 shareInfo2 = new srvsvc.ShareInfo1();
            shareInfo2.netname = "Share2";
            shareInfo2.type = 1;
            shareInfo2.remark = "Remark for Share2";
    
            // Create ShareInfoCtr1 with the shares
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbShareInfo.java

         *
         * @param netName the network name of the share
         * @param type the type of the share
         * @param remark the descriptive comment about the share
         */
        public SmbShareInfo(final String netName, final int type, final String remark) {
            this.netName = netName;
            this.type = type;
            this.remark = remark;
        }
    
        @Override
        public String getName() {
            return netName;
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
Back to top