- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 57 for dtoi (0.07 sec)
-
internal/config/heal/heal.go
} cfg.IOCount, err = strconv.Atoi(env.Get(EnvIOCount, kvs.GetWithDefault(IOCount, DefaultKVS))) if err != nil { return cfg, fmt.Errorf("'heal:max_io' value invalid: %w", err) } if ws := env.Get(EnvDriveWorkers, kvs.GetWithDefault(DriveWorkers, DefaultKVS)); ws != "" { w, err := strconv.Atoi(ws) if err != nil {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4.9K bytes - Viewed (0) -
src/strconv/doc.go
// Package strconv implements conversions to and from string representations // of basic data types. // // # Numeric Conversions // // The most common numeric conversions are [Atoi] (string to int) and [Itoa] (int to string). // // i, err := strconv.Atoi("-42") // s := strconv.Itoa(-42) // // These assume decimal and the Go int type. // // [ParseBool], [ParseFloat], [ParseInt], and [ParseUint] convert strings to values: //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:21:28 UTC 2024 - 1.9K bytes - Viewed (0) -
src/syscall/syscall_plan9.go
p = i + 1 nf++ } } f[nf] = buf[p:] nf++ if nf != len(f) { return NewError("invalid wait message") } w.Pid = int(atoi(f[0])) w.Time[0] = uint32(atoi(f[1])) w.Time[1] = uint32(atoi(f[2])) w.Time[2] = uint32(atoi(f[3])) w.Msg = cstring(f[4]) if w.Msg == "''" { // await() returns '' for no error w.Msg = "" } return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:03:59 UTC 2024 - 9.4K bytes - Viewed (0) -
tools/istio-iptables/pkg/capture/run_linux.go
if err != nil { return fmt.Errorf("failed to find 'lo' link: %v", err) } tproxyTable, err := strconv.Atoi(cfg.InboundTProxyRouteTable) if err != nil { return fmt.Errorf("failed to parse InboundTProxyRouteTable: %v", err) } tproxyMark, err := strconv.Atoi(cfg.InboundTProxyMark) if err != nil { return fmt.Errorf("failed to parse InboundTProxyMark: %v", err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Apr 30 22:24:38 UTC 2024 - 3.1K bytes - Viewed (0) -
.typos.toml
"bui" = "bui" "dm2nd" = "dm2nd" "ot" = "ot" "ParseND" = "ParseND" "ParseNDStream" = "ParseNDStream" "pn" = "pn" "TestGetPartialObjectMisAligned" = "TestGetPartialObjectMisAligned" "thr" = "thr"
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Apr 18 15:15:02 UTC 2024 - 854 bytes - Viewed (0) -
pkg/kube/version.go
if err != nil { return -1 } v, err := strconv.Atoi(clusterVersion.Major + clusterVersion.Minor) if err != nil { // Apparently some clusters don't put proper numbers here. Try GitVersion vp, err := version.ParseGeneric(clusterVersion.GitVersion) if err != nil { // no good return -1 } np, err := strconv.Atoi(fmt.Sprintf("%d%d", vp.Major(), vp.Minor())) if err != nil { // no good...
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 17 23:16:29 UTC 2024 - 2.8K bytes - Viewed (0) -
tensorflow/cc/client/client_session.cc
CHECK_NOTNULL(impl()->session_.get()); } // Define destructor here so we can forward declare `Impl` in client_session.h. // If we define a dtor in the header file or use the default dtor, // unique_ptr<Impl> needs the complete type. ClientSession::~ClientSession() {} SessionOptions ClientSession::Impl::MakeDefaultSessionOptions( const string& target) { SessionOptions options;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 28 09:04:10 UTC 2024 - 7.1K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/binutils/addr2liner_llvm.go
} else { switch split := strings.Split(fileline, ":"); len(split) { case 3: // filename:line:column if col, err := strconv.Atoi(split[2]); err == nil { columnnumber = col } fallthrough case 2: // filename:line if line, err := strconv.Atoi(split[1]); err == nil { linenumber = line } fallthrough case 1: // filename fileline = split[0] default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/device_util.cc
llvm::SmallVector<llvm::StringRef, 3> cc; if (r->match(device.attributes().physical_device_desc(), &cc)) { return mlir::TF::GpuDeviceMetadata::get( builder->getContext(), std::stoi(cc[1].str()), std::stoi(cc[2].str())); } return builder->getUnitAttr(); } // Get devices from an array of string attributes. // TODO(ezhulenev): Update all tests to use dictionary attribute for
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.4K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/intstr/intstr.go
// it is a String, will attempt a conversion to int, // returning 0 if a parsing error occurs. func (intstr *IntOrString) IntValue() int { if intstr.Type == String { i, _ := strconv.Atoi(intstr.StrVal) return i } return int(intstr.IntVal) } // MarshalJSON implements the json.Marshaller interface. func (intstr IntOrString) MarshalJSON() ([]byte, error) { switch intstr.Type {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:09 UTC 2024 - 7.8K bytes - Viewed (0)