- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,281 for terminator (0.24 sec)
-
src/runtime/testdata/testprog/syscalls_linux.go
// environment, or use some other mechanism. var buf [4096]byte n, err := syscall.Getcwd(buf[:]) if err != nil { return "", err } // Subtract one for null terminator. return string(buf[:n-1]), nil } func unshareFs() error { err := syscall.Unshare(syscall.CLONE_FS) if testenv.SyscallIsNotSupported(err) { return errNotPermitted } return err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:00:09 UTC 2024 - 2.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/plan9/syscall.go
// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated // at a zero byte; if the zero byte is not present, the program may crash. func BytePtrToString(p *byte) string { if p == nil { return "" } if *p == 0 { return "" } // Find NUL terminator. n := 0 for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ { ptr = unsafe.Pointer(uintptr(ptr) + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.3K bytes - Viewed (0) -
src/syscall/env_windows.go
} defer FreeEnvironmentStrings(envp) r := make([]string, 0, 50) // Empty with room to grow. const size = unsafe.Sizeof(*envp) for *envp != 0 { // environment block ends with empty string // find NUL terminator end := unsafe.Pointer(envp) for *(*uint16)(end) != 0 { end = unsafe.Add(end, size) } entry := unsafe.Slice(envp, (uintptr(end)-uintptr(unsafe.Pointer(envp)))/size) r = append(r, UTF16ToString(entry))
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 04 15:31:54 UTC 2023 - 2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/syscall.go
// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated // at a zero byte; if the zero byte is not present, the program may crash. func BytePtrToString(p *byte) string { if p == nil { return "" } if *p == 0 { return "" } // Find NUL terminator. n := 0 for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ { ptr = unsafe.Pointer(uintptr(ptr) + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 2.8K bytes - Viewed (0) -
src/cmd/go/internal/test/testflag.go
} if errors.Is(err, cmdflag.ErrFlagTerminator) { // 'go list' allows package arguments to be named either before or after // the terminator, but 'go test' has historically allowed them only // before. Preserve that behavior and treat all remaining arguments — // including the terminator itself! — as arguments to the test. explicitArgs = append(explicitArgs, args...) break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 19:25:24 UTC 2024 - 12.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/windows/syscall.go
// If the pointer is nil, it returns the empty string. It assumes that the text sequence is terminated // at a zero byte; if the zero byte is not present, the program may crash. func BytePtrToString(p *byte) string { if p == nil { return "" } if *p == 0 { return "" } // Find NUL terminator. n := 0 for ptr := unsafe.Pointer(p); *(*byte)(ptr) != 0; n++ { ptr = unsafe.Pointer(uintptr(ptr) + 1)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 3.2K bytes - Viewed (0) -
pilot/pkg/config/file/util/kubeyaml/kubeyaml.go
startLine = r.currLine foundStart = true } sep := len([]byte(separator)) if i := bytes.Index(line, []byte(separator)); i == 0 { // We have a potential document terminator i += sep after := line[i:] if len(strings.TrimRightFunc(string(after), unicode.IsSpace)) == 0 { if buffer.Len() != 0 { return buffer.Bytes(), startLine, nil } if err == io.EOF {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 12 02:41:40 UTC 2022 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc
// (a) emit the terminator last. // (b) honor the priority function (as far as possible). // (c) preserve order within the ops of one dialect. auto better = [&](Operation* a, Operation* b) { if (a->hasTrait<OpTrait::IsTerminator>() != b->hasTrait<OpTrait::IsTerminator>()) { return b->hasTrait<OpTrait::IsTerminator>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 5K bytes - Viewed (0) -
src/cmd/go/testdata/script/vet_flags.txt
go vet -n -unsafeptr runtime stderr '-unsafeptr' ! stderr '-unsafeptr=false' # -unreachable is disabled during test but on during plain vet. go test -n runtime stderr '-unreachable=false' # A flag terminator should be allowed before the package list. go vet -n -- . [short] stop # Analyzer flags should be included from GOFLAGS, and should override # the defaults. go vet . env GOFLAGS='-tags=buggy' ! go vet .
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 21 14:58:44 UTC 2023 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h
if (op->hasTrait<OpTrait::ConstantLike>()) return false; if (llvm::isa<TFL::ConstOp, TFL::QConstOp>(op)) return false; return true; } // Returns true if 'op' is a terminator op, otherwise false. bool IsTerminatorOp(Operation* op); // Returns true if 'op' is not TFL Quant / Dequant op. Returns False otherwise // or if 'op' is null. bool NotTFLQuantDequantizeOp(Operation* op);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0)