- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 119 for toBytes (0.16 sec)
-
pkg/kubelet/stats/cri_stats_provider.go
return statsapi.InterfaceStats{ Name: criIface.Name, RxBytes: valueOfUInt64Value(criIface.RxBytes), RxErrors: valueOfUInt64Value(criIface.RxErrors), TxBytes: valueOfUInt64Value(criIface.TxBytes), TxErrors: valueOfUInt64Value(criIface.TxErrors), } } func valueOfUInt64Value(value *runtimeapi.UInt64Value) *uint64 { if value == nil { return nil } return &value.Value
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 01 18:46:33 UTC 2023 - 35.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
v1Creator.commit() cache["k1"]!!.use { snapshot1 -> val inV1 = snapshot1.getSource(0).buffer() assertThat(inV1.readByte()).isEqualTo('A'.code.toByte()) assertThat(inV1.readByte()).isEqualTo('A'.code.toByte()) val v1Updater = cache.edit("k1")!! v1Updater.setString(0, "CCcc") v1Updater.setString(1, "DDdd") v1Updater.commit()
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0) -
pkg/kubelet/stats/cadvisor_stats_provider.go
if cstat.Network != nil { iStats := cadvisorInfoToNetworkStats(info) if iStats != nil { for _, iStat := range iStats.Interfaces { if *iStat.RxErrors != 0 || *iStat.TxErrors != 0 || *iStat.RxBytes != 0 || *iStat.TxBytes != 0 { return false } } } } if cstat.CpuInst == nil || cstat.Memory == nil { return true } return cstat.CpuInst.Usage.Total == 0 && cstat.Memory.RSS == 0 }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 16 13:34:22 UTC 2023 - 18.9K bytes - Viewed (0) -
src/crypto/internal/edwards25519/scalar_fiat.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 10 18:45:00 UTC 2022 - 35.6K bytes - Viewed (0) -
pkg/kubelet/stats/cri_stats_provider_test.go
assert.Equal(expected.Interfaces[0].RxBytes, *actual.RxBytes) assert.Equal(expected.Interfaces[0].RxErrors, *actual.RxErrors) assert.Equal(expected.Interfaces[0].TxBytes, *actual.TxBytes) assert.Equal(expected.Interfaces[0].TxErrors, *actual.TxErrors) } func checkCRIPodCPUAndMemoryStats(assert *assert.Assertions, actual statsapi.PodStats, cs *cadvisorapiv2.ContainerStats) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 54.5K bytes - Viewed (0) -
src/cmd/cgo/internal/test/test.go
Name string Got, Want interface{} } var testPairs = []testPair{ {"GoString", C.GoString(C.greeting), greeting}, {"GoStringN", C.GoStringN(C.greeting, 5), greeting[:5]}, {"GoBytes", C.GoBytes(unsafe.Pointer(C.greeting), 5), []byte(greeting[:5])}, } func testHelpers(t *testing.T) { for _, pair := range testPairs { if !reflect.DeepEqual(pair.Got, pair.Want) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0) -
src/encoding/gob/debug.go
fmt.Fprintf(os.Stderr, "%s%g\n", indent, float64FromBits(x)) case tComplex: r := deb.uint64() i := deb.uint64() fmt.Fprintf(os.Stderr, "%s%g+%gi\n", indent, float64FromBits(r), float64FromBits(i)) case tBytes: x := int(deb.uint64()) b := make([]byte, x) deb.r.Read(b) deb.consumed(x) fmt.Fprintf(os.Stderr, "%s{% x}=%q\n", indent, b, b) case tString: x := int(deb.uint64()) b := make([]byte, x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jan 20 09:34:41 UTC 2023 - 18.3K bytes - Viewed (0) -
src/encoding/gob/decode.go
} // Indexed by gob types. tComplex will be added during type.init(). var decIgnoreOpMap = map[typeId]decOp{ tBool: ignoreUint, tInt: ignoreUint, tUint: ignoreUint, tFloat: ignoreUint, tBytes: ignoreUint8Array, tString: ignoreUint8Array, tComplex: ignoreTwoUints, } // decOpFor returns the decoding op for the base type under rt and // the indirection count to reach it.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 07 19:10:23 UTC 2023 - 40.1K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
val source = response.body.source() source.timeout().timeout(1000, TimeUnit.MILLISECONDS) assertThat(source.readByte()).isEqualTo('A'.code.toByte()) assertThat(source.readByte()).isEqualTo('B'.code.toByte()) assertThat(source.readByte()).isEqualTo('C'.code.toByte()) assertFailsWith<SocketTimeoutException> { source.readByte() // If Content-Length was accurate, this would return -1 immediately. }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
assertThat(actual).isEqualTo(expected) } private fun intArrayToByteArray(bytes: IntArray): ByteString { val data = ByteArray(bytes.size) for (i in bytes.indices) { data[i] = bytes[i].toByte() } return ByteString.of(*data) } private fun readerHeaderTableLength(): Int { return hpackReader!!.dynamicTable.size }
Registered: Sun Jun 16 04:42:17 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 38.2K bytes - Viewed (0)