Search Options

Results per page
Sort
Preferred Languages
Advance

Results 231 - 240 of 1,431 for byte1 (0.05 sec)

  1. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

      }
    
      private static void assertMessageDigestHashing(byte[] input, String algorithmName) {
        try {
          MessageDigest digest = MessageDigest.getInstance(algorithmName);
          assertEquals(
              HashCode.fromBytes(digest.digest(input)), ALGORITHMS.get(algorithmName).hashBytes(input));
          for (int bytes = 4; bytes <= digest.getDigestLength(); bytes++) {
            assertEquals(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/hash/AbstractStreamingHasher.java

      /** Number of bytes to be filled before process() invocation(s). */
      private final int bufferSize;
    
      /** Number of bytes processed per process() invocation. */
      private final int chunkSize;
    
      /**
       * Constructor for use by subclasses. This hasher instance will process chunks of the specified
       * size.
       *
       * @param chunkSize the number of bytes available per {@link #process(ByteBuffer)} invocation;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 15 20:59:00 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  3. cmd/background-newdisks-heal-ops_gen_test.go

    import (
    	"bytes"
    	"testing"
    
    	"github.com/tinylib/msgp/msgp"
    )
    
    func TestMarshalUnmarshalhealingTracker(t *testing.T) {
    	v := healingTracker{}
    	bts, err := v.MarshalMsg(nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    	left, err := v.UnmarshalMsg(bts)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if len(left) > 0 {
    		t.Errorf("%d bytes left over after UnmarshalMsg(): %q", len(left), left)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Apr 23 18:58:53 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  4. internal/config/certs.go

    func ParsePublicCertFile(certFile string) (x509Certs []*x509.Certificate, err error) {
    	// Read certificate file.
    	var data []byte
    	if data, err = os.ReadFile(certFile); err != nil {
    		return nil, err
    	}
    
    	// Trimming leading and tailing white spaces.
    	data = bytes.TrimSpace(data)
    
    	// Parse all certs in the chain.
    	current := data
    	for len(current) > 0 {
    		var pemBlock *pem.Block
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. cmd/erasure_test.go

    				}
    			}
    
    			decodedData := new(bytes.Buffer)
    			if _, err = writeDataBlocks(context.Background(), decodedData, decoded, test.dataBlocks, 0, int64(len(data))); err != nil {
    				t.Errorf("Test %d: failed to write data blocks: %v", i, err)
    			}
    			if !bytes.Equal(decodedData.Bytes(), data) {
    				t.Errorf("Test %d: Decoded data does not match original data: got: %v want: %v", i, decodedData.Bytes(), data)
    			}
    		}
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 25 19:37:26 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbFileInputStream.java

        }
    
    
        /**
         * Reads up to b.length bytes of data from this input stream into an array of bytes.
         *
         * @throws IOException
         *             if a network error occurs
         */
    
        @Override
        public int read ( byte[] b ) throws IOException {
            return read(b, 0, b.length);
        }
    
    
        /**
         * Reads up to len bytes of data from this input stream into an array of bytes.
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun May 17 08:55:14 UTC 2020
    - 13.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/UrlEscapers.java

       *   <li>The space character " " is converted into a plus sign "+".
       *   <li>All other characters are converted into one or more bytes using UTF-8 encoding and each
       *       byte is then represented by the 3-character string "%XY", where "XY" is the two-digit,
       *       uppercase, hexadecimal representation of the byte value.
       * </ul>
       *
       * <p>This escaper is suitable for escaping parameter names and values even when <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/net/UrlEscapers.java

       *   <li>The space character " " is converted into a plus sign "+".
       *   <li>All other characters are converted into one or more bytes using UTF-8 encoding and each
       *       byte is then represented by the 3-character string "%XY", where "XY" is the two-digit,
       *       uppercase, hexadecimal representation of the byte value.
       * </ul>
       *
       * <p>This escaper is suitable for escaping parameter names and values even when <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/ChecksumHashFunction.java

        private ChecksumHasher(Checksum checksum) {
          this.checksum = checkNotNull(checksum);
        }
    
        @Override
        protected void update(byte b) {
          checksum.update(b);
        }
    
        @Override
        protected void update(byte[] bytes, int off, int len) {
          checksum.update(bytes, off, len);
        }
    
        @Override
        @J2ObjCIncompatible
        protected void update(ByteBuffer b) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:05:16 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  10. cmd/object-api-utils.go

    }
    
    func sealETag(encKey crypto.ObjectKey, md5CurrSum []byte) []byte {
    	var emptyKey [32]byte
    	if bytes.Equal(encKey[:], emptyKey[:]) {
    		return md5CurrSum
    	}
    	return encKey.SealETag(md5CurrSum)
    }
    
    func sealETagFn(key crypto.ObjectKey) SealMD5CurrFn {
    	fn := func(md5sumcurr []byte) []byte {
    		return sealETag(key, md5sumcurr)
    	}
    	return fn
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 37.1K bytes
    - Viewed (0)
Back to top