Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,182 for gbyte (0.09 sec)

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

        checkHmac(expected, Hashing.hmacMd5(key), data);
      }
    
      private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) {
        assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data));
      }
    
      private static byte[] fillByteArray(int size, int toFillWith) {
        byte[] array = new byte[size];
        Arrays.fill(array, (byte) toFillWith);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  2. src/syscall/ztypes_linux_amd64.go

    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint64
    }
    
    type IPMreq struct {
    	Multiaddr [4]byte /* in_addr */
    	Interface [4]byte /* in_addr */
    }
    
    type IPMreqn struct {
    	Multiaddr [4]byte /* in_addr */
    	Address   [4]byte /* in_addr */
    	Ifindex   int32
    }
    
    type IPv6Mreq struct {
    	Multiaddr [16]byte /* in6_addr */
    	Interface uint32
    }
    
    type Msghdr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 12K bytes
    - Viewed (0)
  3. src/hash/maphash/smhasher_test.go

    }
    func permutation(t *testing.T, h *hashSet, s []uint32, n int) {
    	b := make([]byte, n*4)
    	genPerm(h, b, s, 0)
    	h.check(t)
    }
    func genPerm(h *hashSet, b []byte, s []uint32, n int) {
    	h.addB(b[:n])
    	if n == len(b) {
    		return
    	}
    	for _, v := range s {
    		b[n] = byte(v)
    		b[n+1] = byte(v >> 8)
    		b[n+2] = byte(v >> 16)
    		b[n+3] = byte(v >> 24)
    		genPerm(h, b, s, n+4)
    	}
    }
    
    type key interface {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:41:38 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. internal/grid/grid_test.go

    	local := grid.Managers[0]
    
    	// 1: Echo
    	errFatal(local.RegisterSingleHandler(handlerTest, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("1: server payload: ", len(payload), "bytes.")
    		return append([]byte{}, payload...), nil
    	}))
    	// 2: Return as error
    	errFatal(local.RegisterSingleHandler(handlerTest2, func(payload []byte) ([]byte, *RemoteErr) {
    		t.Log("2: server payload: ", len(payload), "bytes.")
    		err := RemoteErr(payload)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  5. internal/crypto/metadata_test.go

    			MetaIV: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 31)...)), MetaAlgorithm: SealAlgorithm,
    			MetaSealedKeyS3: base64.StdEncoding.EncodeToString(append([]byte{1}, make([]byte, 63)...)), MetaKeyID: "key-1",
    			MetaDataEncryptionKey: base64.StdEncoding.EncodeToString(make([]byte, 48)),
    		},
    		DataKey: make([]byte, 48), KeyID: "key-1", SealedKey: SealedKey{Algorithm: SealAlgorithm, Key: [64]byte{1}, IV: [32]byte{1}},
    	}, // 10
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Feb 02 00:13:57 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  6. src/go/types/builtins_test.go

    	{"append", `var s []int; _ = (append)(s, 0)`, `func([]int, ...int) []int`},
    	{"append", `var s []byte; _ = ((append))(s, 0)`, `func([]byte, ...byte) []byte`},
    	{"append", `var s []byte; _ = append(s, "foo"...)`, `func([]byte, string...) []byte`},
    	{"append", `type T []byte; var s T; var str string; _ = append(s, str...)`, `func(p.T, string...) p.T`},
    	{"append", `type T []byte; type U string; var s T; var str U; _ = append(s, str...)`, `func(p.T, p.U...) p.T`},
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  7. src/crypto/tls/key_agreement.go

    	}
    	ckx := new(clientKeyExchangeMsg)
    	ckx.ciphertext = make([]byte, len(encrypted)+2)
    	ckx.ciphertext[0] = byte(len(encrypted) >> 8)
    	ckx.ciphertext[1] = byte(len(encrypted))
    	copy(ckx.ciphertext[2:], encrypted)
    	return preMasterSecret, ckx, nil
    }
    
    // sha1Hash calculates a SHA1 hash over the given byte slices.
    func sha1Hash(slices [][]byte) []byte {
    	hsha1 := sha1.New()
    	for _, slice := range slices {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. src/syscall/syscall_unix.go

    )
    
    // clen returns the index of the first NULL byte in n or len(n) if n contains no NULL byte.
    func clen(n []byte) int {
    	if i := bytealg.IndexByte(n, 0); i != -1 {
    		return i
    	}
    	return len(n)
    }
    
    // Mmap manager, for use by operating system-specific implementations.
    
    type mmapper struct {
    	sync.Mutex
    	active map[*byte][]byte // active mappings; key is last byte in mapping
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/syscall/ztypes_linux_mips.go

    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint32
    }
    
    type IPMreq struct {
    	Multiaddr [4]byte /* in_addr */
    	Interface [4]byte /* in_addr */
    }
    
    type IPMreqn struct {
    	Multiaddr [4]byte /* in_addr */
    	Address   [4]byte /* in_addr */
    	Ifindex   int32
    }
    
    type IPv6Mreq struct {
    	Multiaddr [16]byte /* in6_addr */
    	Interface uint32
    }
    
    type Msghdr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
  10. src/syscall/ztypes_linux_mipsle.go

    	Linger int32
    }
    
    type Iovec struct {
    	Base *byte
    	Len  uint32
    }
    
    type IPMreq struct {
    	Multiaddr [4]byte /* in_addr */
    	Interface [4]byte /* in_addr */
    }
    
    type IPMreqn struct {
    	Multiaddr [4]byte /* in_addr */
    	Address   [4]byte /* in_addr */
    	Ifindex   int32
    }
    
    type IPv6Mreq struct {
    	Multiaddr [16]byte /* in6_addr */
    	Interface uint32
    }
    
    type Msghdr struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 17:55:49 UTC 2023
    - 10K bytes
    - Viewed (0)
Back to top