Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for mybytes (0.14 sec)

  1. src/reflect/all_test.go

    	{V((**byte)(nil)), V((**byte)(nil))},
    	{V((**MyByte)(nil)), V((**MyByte)(nil))},
    	{V((chan byte)(nil)), V((chan byte)(nil))},
    	{V((chan MyByte)(nil)), V((chan MyByte)(nil))},
    	{V(([]byte)(nil)), V(([]byte)(nil))},
    	{V(([]MyByte)(nil)), V(([]MyByte)(nil))},
    	{V((map[int]byte)(nil)), V((map[int]byte)(nil))},
    	{V((map[int]MyByte)(nil)), V((map[int]MyByte)(nil))},
    	{V((map[byte]int)(nil)), V((map[byte]int)(nil))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. doc/go1.17_spec.html

    </pre>
    </li>
    
    <li>
    Converting a slice of bytes to a string type yields
    a string whose successive bytes are the elements of the slice.
    
    <pre>
    string([]byte{'h', 'e', 'l', 'l', '\xc3', '\xb8'})   // "hellø"
    string([]byte{})                                     // ""
    string([]byte(nil))                                  // ""
    
    type MyBytes []byte
    string(MyBytes{'h', 'e', 'l', 'l', '\xc3', '\xb8'})  // "hellø"
    </pre>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    		// Convert both structs to maps of primitives.
    		inBytes, err := json.Marshal(in)
    		if err != nil {
    			t.Fatalf("failed to json.Marshal(in): %v", err)
    		}
    		outBytes, err := json.Marshal(out)
    		if err != nil {
    			t.Fatalf("failed to json.Marshal(out): %v", err)
    		}
    		inMap := map[string]interface{}{}
    		if err := json.Unmarshal(inBytes, &inMap); err != nil {
    			t.Fatalf("failed to json.Unmarshal(in): %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  4. pkg/kubelet/kubelet_pods.go

    	}
    	return buffer.Bytes()
    }
    
    // truncatePodHostnameIfNeeded truncates the pod hostname if it's longer than 63 chars.
    func truncatePodHostnameIfNeeded(podName, hostname string) (string, error) {
    	// Cap hostname at 63 chars (specification is 64bytes which is 63 chars and the null terminating char).
    	const hostnameMaxLen = 63
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 101.2K bytes
    - Viewed (0)
Back to top