Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 696 for encodes (0.07 sec)

  1. src/main/java/jcifs/ntlmssp/av/AvTargetName.java

        }
    
        /**
         * Constructs an AvTargetName with the specified target name
         *
         * @param targetName the target name string to encode
         */
        public AvTargetName(final String targetName) {
            this(encode(targetName));
        }
    
        /**
         * Gets the target name from this AV pair
         *
         * @return the target name
         */
        public String getTargetName() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopy.java

            this.sourceKey = sourceKey;
            this.chunks = chunks;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Encodable#encode(byte[], int)
         */
        @Override
        public int encode(final byte[] dst, int dstIndex) {
            final int start = dstIndex;
    
            System.arraycopy(this.sourceKey, 0, dst, dstIndex, 24);
            dstIndex += 24;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  3. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/HpackRoundTripTest.kt

    import org.junit.jupiter.params.provider.ArgumentsSource
    
    /**
     * Tests for round-tripping headers through hpack.
     *
     * TODO: update hpack-test-case with the output of our encoder.
     * This test will hide complementary bugs in the encoder and decoder,
     * We should test that the encoder is producing responses that are
     */
    class HpackRoundTripTest : HpackDecodeTestBase() {
      internal class StoriesTestProvider : SimpleProvider() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lease/DirectoryLeaseContextTest.java

            context.setMaxCacheAge(45000L);
            context.setNotificationEnabled(true);
            context.setNotificationFilter(0x1F);
    
            byte[] buffer = new byte[context.size()];
            int bytesWritten = context.encode(buffer, 0);
    
            assertEquals(context.size(), bytesWritten);
    
            // Verify context header
            assertEquals(0, SMBUtil.readInt4(buffer, 0)); // Next
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 01:47:47 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/msrpc/samr.java

                this.domain_handle = domain_handle;
            }
    
            @Override
            public void encode_in(final NdrBuffer _dst) throws NdrException {
                this.handle.encode(_dst);
                _dst.enc_ndr_long(this.access_mask);
                this.sid.encode(_dst);
            }
    
            @Override
            public void decode_out(final NdrBuffer _src) throws NdrException {
                this.domain_handle.decode(_src);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java

                this.domain_handle = domain_handle;
            }
    
            @Override
            public void encode_in(final NdrBuffer _dst) throws NdrException {
                handle.encode(_dst);
                _dst.enc_ndr_long(access_mask);
                sid.encode(_dst);
            }
    
            @Override
            public void decode_out(final NdrBuffer _src) throws NdrException {
                domain_handle.decode(_src);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 23.1K bytes
    - Viewed (0)
  7. cmd/callhome.go

    	}{Version: healthInfo.Version}
    
    	enc := json.NewEncoder(gzWriter)
    	if e := enc.Encode(header); e != nil {
    		internalLogIf(ctx, fmt.Errorf("Could not encode health info header: %w", e))
    		return nil
    	}
    
    	if e := enc.Encode(healthInfo); e != nil {
    		internalLogIf(ctx, fmt.Errorf("Could not encode health info: %w", e))
    		return nil
    	}
    
    	gzWriter.Flush()
    	gzWriter.Close()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. buildscripts/heal-manual.go

    	enc := json.NewEncoder(os.Stdout)
    	if err = enc.Encode(&start); err != nil {
    		log.Fatalln(err)
    	}
    
    	fmt.Println()
    	for {
    		_, status, err := madmClnt.Heal(context.Background(), "healing-rewrite-bucket", "", opts, start.ClientToken, false, false)
    		if status.Summary == "finished" {
    			fmt.Println("Healstatus on items ===")
    			for _, item := range status.Items {
    				if err = enc.Encode(&item); err != nil {
    					log.Fatalln(err)
    				}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 27 09:47:58 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2Test.java

            void testPad8() {
                testMessage.encode(new byte[1024], 0);
                // After header is written, padding depends on position
                int headerStart = testMessage.getHeaderStart();
                assertEquals(0, headerStart); // Should start at 0
            }
        }
    
        @Nested
        @DisplayName("Encode/Decode Tests")
        class EncodeDecodeTests {
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 39.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/compression/CompressionNegotiateContextTest.java

            byte[] buffer = new byte[256];
            int encodedSize = context.encode(buffer, 0);
    
            assertTrue(encodedSize > 8); // Minimum size: count + padding + flags + algorithms
            assertEquals(context.size(), encodedSize);
        }
    
        @Test
        @DisplayName("Test context decoding")
        public void testDecoding() throws SMBProtocolDecodingException {
            // Encode first
            byte[] buffer = new byte[256];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top