Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 640 for unicode (0.03 sec)

  1. src/test/java/jcifs/smb1/dcerpc/ndr/NdrShortTest.java

        }
    
        /**
         * Verify that encode writes the correct little-endian sequence
         * to the buffer and that alignment is respected.
         */
        @Test
        void encodeWritesCorrectBytesAndAlignment() throws NdrException {
            NdrShort ns = new NdrShort(0xABCD); // value & 0xFF => 0xCD
            buf.reset();
            int startIndex = buf.getIndex();
            ns.encode(buf);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(this.level);
                final int _descr = this.level;
                _dst.enc_ndr_long(_descr);
                _dst.enc_ndr_referent(this.e, 1);
    
                if (this.e != null) {
                    _dst = _dst.deferred;
                    this.e.encode(_dst);
    
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java

        class EncodingTests {
    
            @Test
            @DisplayName("Should encode value correctly")
            void testEncode() throws NdrException {
                // Given: NdrShort with test value
                int testValue = 123;
                NdrShort ndrShort = new NdrShort(testValue);
    
                // When: Encoding the value
                ndrShort.encode(mockBuffer);
    
                // Then: Should call enc_ndr_short with masked value
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. cmd/bucket-stats_gen_test.go

    	v := BucketReplicationStat{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeBucketReplicationStat Msgsize() is inaccurate")
    	}
    
    	vn := BucketReplicationStat{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Wed Aug 30 08:00:59 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. cmd/xl-storage-format-v1_gen_test.go

    	v := ChecksumInfo{}
    	var buf bytes.Buffer
    	msgp.Encode(&buf, &v)
    
    	m := v.Msgsize()
    	if buf.Len() > m {
    		t.Log("WARNING: TestEncodeDecodeChecksumInfo Msgsize() is inaccurate")
    	}
    
    	vn := ChecksumInfo{}
    	err := msgp.Decode(&buf, &vn)
    	if err != nil {
    		t.Error(err)
    	}
    
    	buf.Reset()
    	msgp.Encode(&buf, &v)
    	err = msgp.NewReader(&buf).Skip()
    	if err != nil {
    		t.Error(err)
    	}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 13.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java

            domainInfo.sid.sub_authority_count = 2;
            domainInfo.sid.sub_authority = new int[] { 21, 12345 };
    
            // Encode to buffer
            byte[] buffer = new byte[1024];
            NdrBuffer encodeBuffer = new NdrBuffer(buffer, 0);
            domainInfo.encode(encodeBuffer);
    
            // Decode from buffer
            NdrBuffer decodeBuffer = new NdrBuffer(buffer, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            @Test
            @DisplayName("Should encode multiple hash algorithms with salt")
            void testEncodeMultipleHashAlgosWithSalt() {
                int[] hashAlgos = { 0x01, 0x02, 0x03 };
                byte[] salt = { 0x0A, 0x0B };
                PreauthIntegrityNegotiateContext context = new PreauthIntegrityNegotiateContext(mockConfig, hashAlgos, salt);
    
                int bytesWritten = context.encode(buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/CommonServerMessageBlockTest.java

        }
    
        @Test
        @DisplayName("Test encode method with valid destination")
        void testEncodeWithValidDestination() {
            // Given
            byte[] dst = new byte[256];
            int dstIndex = 0;
            int expectedLength = 50;
    
            when(messageBlock.encode(dst, dstIndex)).thenReturn(expectedLength);
    
            // When
            int actualLength = messageBlock.encode(dst, dstIndex);
    
            // Then
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                byte[] largeBuffer = new byte[1000];
    
                // Act
                int smallEncodedSize = context.encode(smallBuffer, 0);
                int largeEncodedSize = context.encode(largeBuffer, 500);
    
                // Assert
                // encode() returns actual bytes written (6), not size() value (8)
                assertEquals(6, smallEncodedSize); // actual: 2 bytes count + 2*2 bytes for ciphers
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

                    this.root_directory.encode(_dst);
    
                }
                if (this.object_name != null) {
                    _dst = _dst.deferred;
                    this.object_name.encode(_dst);
    
                }
                if (this.security_quality_of_service != null) {
                    _dst = _dst.deferred;
                    this.security_quality_of_service.encode(_dst);
    
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
Back to top