Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Clone (0.15 sec)

  1. api/go1.3.txt

    pkg syscall (netbsd-386), const CLONE_CSIGNAL = 255
    pkg syscall (netbsd-386), const CLONE_CSIGNAL ideal-int
    pkg syscall (netbsd-386), const CLONE_FILES = 1024
    pkg syscall (netbsd-386), const CLONE_FILES ideal-int
    pkg syscall (netbsd-386), const CLONE_FS = 512
    pkg syscall (netbsd-386), const CLONE_FS ideal-int
    pkg syscall (netbsd-386), const CLONE_PID = 4096
    pkg syscall (netbsd-386), const CLONE_PID ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  2. src/arena/arena.go

    // slice after free may result in a fault, but this fault is also not guaranteed.
    func MakeSlice[T any](a *Arena, len, cap int) []T {
    	var sl []T
    	runtime_arena_arena_Slice(a.a, &sl, cap)
    	return sl[:len]
    }
    
    // Clone makes a shallow copy of the input value that is no longer bound to any
    // arena it may have been allocated from, returning the copy. If it was not
    // allocated from an arena, it is returned untouched. This function is useful
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Oct 12 20:23:36 GMT 2022
    - 4.3K bytes
    - Viewed (0)
  3. src/bytes/example_test.go

    	}
    	fmt.Println(c)
    	fmt.Println(b.String())
    	// Output:
    	// 97
    	// bcde
    }
    
    func ExampleClone() {
    	b := []byte("abc")
    	clone := bytes.Clone(b)
    	fmt.Printf("%s\n", clone)
    	clone[0] = 'd'
    	fmt.Printf("%s\n", b)
    	fmt.Printf("%s\n", clone)
    	// Output:
    	// abc
    	// abc
    	// dbc
    }
    
    func ExampleCompare() {
    	// Interpret Compare's result by comparing it to zero.
    	var a, b []byte
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. api/go1.13.txt

    pkg syscall (netbsd-arm64), const CLONE_PTRACE = 8192
    pkg syscall (netbsd-arm64), const CLONE_PTRACE ideal-int
    pkg syscall (netbsd-arm64), const CLONE_SIGHAND = 2048
    pkg syscall (netbsd-arm64), const CLONE_SIGHAND ideal-int
    pkg syscall (netbsd-arm64), const CLONE_VFORK = 16384
    pkg syscall (netbsd-arm64), const CLONE_VFORK ideal-int
    pkg syscall (netbsd-arm64), const CLONE_VM = 256
    pkg syscall (netbsd-arm64), const CLONE_VM ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    	var cloneTests = [][]byte{
    		[]byte(nil),
    		[]byte{},
    		Clone([]byte{}),
    		[]byte(strings.Repeat("a", 42))[:0],
    		[]byte(strings.Repeat("a", 42))[:0:0],
    		[]byte("short"),
    		[]byte(strings.Repeat("a", 42)),
    	}
    	for _, input := range cloneTests {
    		clone := Clone(input)
    		if !Equal(clone, input) {
    			t.Errorf("Clone(%q) = %q; want %q", input, clone, input)
    		}
    
    		if input == nil && clone != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. src/cmd/api/testdata/src/pkg/p4/golden.txt

    pkg p4, method (Pair[$0, $1]) Second() $1
    pkg p4, method (Pair[$0, $1]) First() $0
    pkg p4, type Pair[$0 interface{ M }, $1 interface{ ~int }] struct
    pkg p4, func Clone[$0 interface{ ~[]$1 }, $1 interface{}]($0) $0
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Jan 26 19:39:32 GMT 2024
    - 329 bytes
    - Viewed (0)
  7. api/go1.20.txt

    pkg syscall (linux-386), const CLONE_INTO_CGROUP = 8589934592 #51246
    pkg syscall (linux-386), const CLONE_INTO_CGROUP ideal-int #51246
    pkg syscall (linux-386), const CLONE_NEWCGROUP = 33554432 #51246
    pkg syscall (linux-386), const CLONE_NEWCGROUP ideal-int #51246
    pkg syscall (linux-386), const CLONE_NEWTIME = 128 #51246
    pkg syscall (linux-386), const CLONE_NEWTIME ideal-int #51246
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
  8. api/go1.18.txt

    pkg runtime/debug, type BuildSetting struct
    pkg runtime/debug, type BuildSetting struct, Key string
    pkg runtime/debug, type BuildSetting struct, Value string
    pkg strings, func Clone(string) string
    pkg strings, func Cut(string, string) (string, string, bool)
    pkg strings, func Title //deprecated
    pkg sync, method (*Mutex) TryLock() bool
    pkg sync, method (*RWMutex) TryLock() bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    	if i := Index(s, sep); i >= 0 {
    		return s[:i], s[i+len(sep):], true
    	}
    	return s, nil, false
    }
    
    // Clone returns a copy of b[:len(b)].
    // The result may have additional unused capacity.
    // Clone(nil) returns nil.
    func Clone(b []byte) []byte {
    	if b == nil {
    		return nil
    	}
    	return append([]byte{}, b...)
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. api/go1.8.txt

    pkg crypto/tls, const TLS_RSA_WITH_AES_128_CBC_SHA256 = 60
    pkg crypto/tls, const TLS_RSA_WITH_AES_128_CBC_SHA256 uint16
    pkg crypto/tls, const X25519 = 29
    pkg crypto/tls, const X25519 CurveID
    pkg crypto/tls, method (*Config) Clone() *Config
    pkg crypto/tls, method (*Conn) CloseWrite() error
    pkg crypto/tls, type CertificateRequestInfo struct
    pkg crypto/tls, type CertificateRequestInfo struct, AcceptableCAs [][]uint8
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Dec 21 05:25:57 GMT 2016
    - 16.3K bytes
    - Viewed (0)
Back to top