Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,852 for byte (0.13 sec)

  1. guava/src/com/google/common/primitives/Bytes.java

       * @param arrays zero or more {@code byte} arrays
       * @return a single array containing all the values from the source arrays, in order
       */
      public static byte[] concat(byte[]... arrays) {
        int length = 0;
        for (byte[] array : arrays) {
          length += array.length;
        }
        byte[] result = new byte[length];
        int pos = 0;
        for (byte[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-15 16:12
    - 14.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Bytes.java

       * @param arrays zero or more {@code byte} arrays
       * @return a single array containing all the values from the source arrays, in order
       */
      public static byte[] concat(byte[]... arrays) {
        int length = 0;
        for (byte[] array : arrays) {
          length += array.length;
        }
        byte[] result = new byte[length];
        int pos = 0;
        for (byte[] array : arrays) {
          System.arraycopy(array, 0, result, pos, array.length);
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-15 16:12
    - 14.9K bytes
    - Viewed (0)
  3. platforms/core-runtime/serialization/src/test/groovy/org/gradle/internal/serialize/AbstractCodecTest.groovy

        byte[] encode(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            return bytes.toByteArray()
        }
    
        byte[] truncate(Closure<Encoder> closure) {
            def bytes = new ByteArrayOutputStream()
            encodeTo(bytes, closure)
            def result = bytes.toByteArray()
            if (result.length < 2) {
    Registered: 2024-06-12 18:38
    - Last Modified: 2024-04-15 16:06
    - 14.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/Utf8Test.java

        return new String(chars);
      }
    
      private static byte[] toByteArray(int... bytes) {
        byte[] realBytes = new byte[bytes.length];
        for (int i = 0; i < bytes.length; i++) {
          realBytes[i] = (byte) bytes[i];
        }
        return realBytes;
      }
    
      private static void assertWellFormed(int... bytes) {
        assertTrue(Utf8.isWellFormed(toByteArray(bytes)));
      }
    
    Registered: 2024-06-12 16:38
    - Last Modified: 2024-02-09 15:49
    - 12.7K bytes
    - Viewed (0)
  5. src/crypto/aes/gcm_ppc64x.go

    }
    
    func gcmLengths(len0, len1 uint64) [16]byte {
    	return [16]byte{
    		byte(len0 >> 56),
    		byte(len0 >> 48),
    		byte(len0 >> 40),
    		byte(len0 >> 32),
    		byte(len0 >> 24),
    		byte(len0 >> 16),
    		byte(len0 >> 8),
    		byte(len0),
    		byte(len1 >> 56),
    		byte(len1 >> 48),
    		byte(len1 >> 40),
    		byte(len1 >> 32),
    		byte(len1 >> 24),
    		byte(len1 >> 16),
    		byte(len1 >> 8),
    		byte(len1),
    	}
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-13 18:57
    - 6.4K bytes
    - Viewed (0)
  6. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashCode.java

        private static void longToBytes(long value, byte[] bytes, int offset) {
            bytes[offset] = (byte) (value & 0xFF);
            bytes[offset + 1] = (byte) ((value >>> 8) & 0xFF);
            bytes[offset + 2] = (byte) ((value >>> 16) & 0xFF);
            bytes[offset + 3] = (byte) ((value >>> 24) & 0xFF);
            bytes[offset + 4] = (byte) ((value >>> 32) & 0xFF);
            bytes[offset + 5] = (byte) ((value >>> 40) & 0xFF);
    Registered: 2024-06-12 18:38
    - Last Modified: 2023-12-14 19:25
    - 10.9K bytes
    - Viewed (0)
  7. src/net/writev_test.go

    		want    Buffers
    	}{
    		{
    			in:      Buffers{[]byte("foo"), []byte("bar")},
    			consume: 0,
    			want:    Buffers{[]byte("foo"), []byte("bar")},
    		},
    		{
    			in:      Buffers{[]byte("foo"), []byte("bar")},
    			consume: 2,
    			want:    Buffers{[]byte("o"), []byte("bar")},
    		},
    		{
    			in:      Buffers{[]byte("foo"), []byte("bar")},
    			consume: 3,
    			want:    Buffers{[]byte("bar")},
    		},
    		{
    Registered: 2024-06-12 16:32
    - Last Modified: 2023-09-18 17:20
    - 5K bytes
    - Viewed (0)
  8. src/crypto/internal/hpke/hpke.go

    	encPubRecip := pubRecipient.Bytes()
    	kemContext := append(encPubEph, encPubRecip...)
    
    	return dh.ExtractAndExpand(dhVal, kemContext), encPubEph, nil
    }
    
    type Sender struct {
    	aead cipher.AEAD
    	kem  *dhKEM
    
    	sharedSecret []byte
    
    	suiteID []byte
    
    	key            []byte
    	baseNonce      []byte
    	exporterSecret []byte
    
    	seqNum uint128
    }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-05-22 22:33
    - 7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/framer/framer_test.go

    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x01}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	if n, err := r.Read(buf); err != io.ErrShortBuffer && n != 1 && bytes.Equal(buf, []byte{0x02}) {
    		t.Fatalf("unexpected: %v %d %v", err, n, buf)
    	}
    	// read the remaining frame
    	buf = make([]byte, 2)
    	if n, err := r.Read(buf); err != nil && n != 2 && bytes.Equal(buf, []byte{0x03, 0x04}) {
    Registered: 2024-06-15 01:39
    - Last Modified: 2024-05-09 13:33
    - 6.3K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/notboring.go

    func NewSHA512() hash.Hash { panic("boringcrypto: not available") }
    
    func SHA1([]byte) [20]byte   { panic("boringcrypto: not available") }
    func SHA224([]byte) [28]byte { panic("boringcrypto: not available") }
    func SHA256([]byte) [32]byte { panic("boringcrypto: not available") }
    func SHA384([]byte) [48]byte { panic("boringcrypto: not available") }
    func SHA512([]byte) [64]byte { panic("boringcrypto: not available") }
    
    Registered: 2024-06-12 16:32
    - Last Modified: 2024-01-26 22:52
    - 4.9K bytes
    - Viewed (0)
Back to top