Search Options

Results per page
Sort
Preferred Languages
Advance

Results 381 - 390 of 985 for Encode (0.21 sec)

  1. cmd/erasure-multipart.go

    		}
    	}
    
    	if opts.WantChecksum != nil {
    		if checksumType.FullObjectRequested() {
    			if opts.WantChecksum.Encoded != checksum.Encoded {
    				err := hash.ChecksumMismatch{
    					Want: opts.WantChecksum.Encoded,
    					Got:  checksum.Encoded,
    				}
    				return oi, err
    			}
    		} else {
    			err := opts.WantChecksum.Matches(checksumCombined, len(parts))
    			if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 47.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

                    dstIndex += cnBytes.length;
                    dstIndex += pad8(dstIndex);
    
                    SMBUtil.writeInt2(dstIndex - structStart, dst, dataOffsetOffset);
                    final int len = createContext.encode(dst, dstIndex);
                    SMBUtil.writeInt4(len, dst, dataLengthOffset);
                    dstIndex += len;
    
                    final int pad = pad8(dstIndex);
                    totalCreateContextLength += len + pad;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 22.9K bytes
    - Viewed (0)
  3. cmd/xl-storage-format_test.go

    			for i := range size {
    				fi.VersionID = mustGetUUID()
    				fi.DataDir = mustGetUUID()
    				ids[i] = fi.VersionID
    				fi.ModTime = fi.ModTime.Add(-time.Second)
    				xl.AddVersion(fi)
    			}
    			// Encode all. This is used for benchmarking.
    			enc, err := xl.AppendTo(nil)
    			if err != nil {
    				b.Fatal(err)
    			}
    			b.Logf("Serialized size: %d bytes", len(enc))
    			rng := rand.New(rand.NewSource(0))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/lock/Smb2LockRequestTest.java

            void testWriteBytesWireFormatSingleLock() {
                Smb2Lock[] locks = new Smb2Lock[] { new Smb2Lock(1024L, 2048L, Smb2Lock.SMB2_LOCKFLAG_EXCLUSIVE_LOCK) };
                when(mockLock.encode(any(byte[].class), anyInt())).thenReturn(24);
    
                Smb2LockRequest req = new Smb2LockRequest(mockConfig, testFileId, locks);
                byte[] buffer = new byte[256];
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

         * certificates are base64-encoded and appear each on their own line. The next line contains the
         * length of the local certificate chain. These certificates are also base64-encoded and appear
         * each on their own line. A length of -1 is used to encode a null array. The last line is
         * optional. If present, it contains the TLS version.
         */
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  6. cmd/storage-rest-client.go

    	values.Set(storageRESTVolume, volume)
    	values.Set(storageRESTTotalVersions, strconv.Itoa(len(versions)))
    
    	var buffer bytes.Buffer
    	encoder := msgp.NewWriter(&buffer)
    	for _, version := range versions {
    		version.EncodeMsg(encoder)
    	}
    	storageLogIf(ctx, encoder.Flush())
    
    	errs = make([]error, len(versions))
    
    	respBody, err := client.call(ctx, storageRESTMethodDeleteVersions, values, &buffer, -1)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 08 02:38:41 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

                // Build final encrypted message
                final byte[] result = new byte[Smb2TransformHeader.TRANSFORM_HEADER_SIZE + encResult.ciphertext.length];
                transformHeader.encode(result, 0);
                System.arraycopy(encResult.ciphertext, 0, result, Smb2TransformHeader.TRANSFORM_HEADER_SIZE, encResult.ciphertext.length);
    
                // Track encrypted bytes for key rotation - lock-free atomic operation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/ntlmssp/Type3Message.java

            this.sessionKey = sessionKey;
        }
    
        /**
         * Returns the message integrity code (MIC) for this Type-3 message.
         *
         * @return A <code>byte[]</code> containing the message integrity code.
         */
        public byte[] getMic() {
            return this.mic;
        }
    
        /**
         * Sets the message integrity code (MIC) for this Type-3 message.
         *
         * @param mic
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  9. cmd/streaming-signature-v4.go

    	// Parse date header.
    	var err error
    	date, err = time.Parse(iso8601Format, dateStr)
    	if err != nil {
    		return cred, "", "", time.Time{}, ErrMalformedDate
    	}
    
    	// Query string.
    	queryStr := req.Form.Encode()
    
    	// Get canonical request.
    	canonicalRequest := getCanonicalRequest(extractedSignedHeaders, payload, queryStr, req.URL.Path, req.Method)
    
    	// Get string to sign from canonical request.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Mar 30 00:56:02 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/ServerMessageBlock.java

         * @param dstIndex the starting offset in the buffer
         * @param unicode true to use Unicode encoding, false for OEM encoding
         * @return the number of bytes written
         */
        protected int writeString(final String str, final byte[] dst, int dstIndex, final boolean unicode) {
            final int start = dstIndex;
            if (unicode) {
                // Unicode requires word alignment
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 38.9K bytes
    - Viewed (0)
Back to top