- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,635 for copyFn (0.12 sec)
-
pkg/file/file_test.go
"path/filepath" "testing" "istio.io/istio/pkg/test/util/assert" ) func copyTest(t *testing.T, copyFn func(srcFilepath, targetDir, targetFilename string) error) { t.Helper() d := t.TempDir() if err := os.WriteFile(filepath.Join(d, "in"), []byte("hello world"), 0o750); err != nil { t.Fatal(err) } if err := copyFn(filepath.Join(d, "in"), d, "out"); err != nil { t.Fatal(err) } f, err := os.Open(filepath.Join(d, "out"))
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Dec 11 19:10:54 UTC 2023 - 1.9K bytes - Viewed (0) -
licenses/github.com/alecthomas/participle/v2/COPYING
Copyright (C) 2017-2022 Alec Thomas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Apr 08 17:05:56 UTC 2024 - 1K bytes - Viewed (0) -
cmd/kubeadm/app/util/copy.go
// In this case, the file is moved by copying and then deleting the source file, // although it is less efficient than os.Rename(). klog.V(4).Infof("cannot rename %v to %v due to %v, attempting an alternative method", src, dest, err) if err := CopyFile(src, dest); err != nil { return errors.Wrapf(err, "failed to copy file %v to %v", src, dest) } return os.Remove(src) } return err
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Feb 22 01:42:57 UTC 2024 - 1.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/SparseImmutableTable.java
// Casts without copying. ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap; return ImmutableMap.<C, Map<R, V>>copyOf(columnMap); } @Override public ImmutableMap<R, Map<C, V>> rowMap() { // Casts without copying. ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap; return ImmutableMap.<R, Map<C, V>>copyOf(rowMap); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 5.6K bytes - Viewed (0) -
test/codegen/copy.go
// ppc64x:-".*memmove" copy(x[1:], x[:]) } func movesmall7() { x := [...]byte{1, 2, 3, 4, 5, 6, 7} // 386:-".*memmove" // amd64:-".*memmove" // arm64:-".*memmove" // ppc64x:-".*memmove" copy(x[1:], x[:]) } func movesmall16() { x := [...]byte{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16} // amd64:-".*memmove" // ppc64x:".*memmove" copy(x[1:], x[:]) } var x [256]byte
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 22 14:09:29 UTC 2023 - 3.1K bytes - Viewed (0) -
src/cmd/compile/internal/ir/copy.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package ir import ( "cmd/internal/src" ) // Copy returns a shallow copy of n. func Copy(n Node) Node { return n.copy() } // DeepCopy returns a “deep” copy of n, with its entire structure copied // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 08 18:57:57 UTC 2023 - 1K bytes - Viewed (0) -
src/internal/trace/batch.go
} // Copy out the batch for later processing. var data bytes.Buffer data.Grow(int(size)) n, err := io.CopyN(&data, r, int64(size)) if n != int64(size) { return batch{}, gen, fmt.Errorf("failed to read full batch: read %d but wanted %d", n, size) } if err != nil { return batch{}, gen, fmt.Errorf("copying batch data: %w", err) } // Return the batch.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.9K bytes - Viewed (0) -
src/os/dir.go
// the file in fsys. // // Symbolic links in fsys are not supported, a *PathError with Err set // to ErrInvalid is returned on symlink. // // Copying stops at and returns the first error encountered. func CopyFS(dir string, fsys fs.FS) error { return fs.WalkDir(fsys, ".", func(path string, d fs.DirEntry, err error) error { if err != nil { return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 6.1K bytes - Viewed (0) -
staging/src/k8s.io/api/storage/v1alpha1/zz_generated.deepcopy.go
} return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CSIStorageCapacity. func (in *CSIStorageCapacity) DeepCopy() *CSIStorageCapacity { if in == nil { return nil } out := new(CSIStorageCapacity) in.DeepCopyInto(out) return out } // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 03:26:35 UTC 2023 - 9.3K bytes - Viewed (0) -
pkg/apis/storagemigration/zz_generated.deepcopy.go
import ( runtime "k8s.io/apimachinery/pkg/runtime" ) // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil. func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource) { *out = *in return } // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource. func (in *GroupVersionResource) DeepCopy() *GroupVersionResource {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 04:18:56 UTC 2024 - 4.9K bytes - Viewed (0)