- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 83 for newSink (0.23 sec)
-
okhttp/src/main/kotlin/okhttp3/Cache.kt
@Synchronized fun requestCount(): Int = requestCount private inner class RealCacheRequest( private val editor: DiskLruCache.Editor, ) : CacheRequest { private val cacheOut: Sink = editor.newSink(ENTRY_BODY) private val body: Sink var done = false init { this.body = object : ForwardingSink(cacheOut) { @Throws(IOException::class) override fun close() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
} assertFailsWith<IllegalStateException> { newSink(0) } assertFailsWith<IllegalStateException> { commit() } assertFailsWith<IllegalStateException> { abort() } } private fun Editor.setString( index: Int, value: String, ) { newSink(index).buffer().use { writer -> writer.writeUtf8(value) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 15 14:55:09 GMT 2024 - 75.8K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/cache/DiskLruCache.kt
* output stream encounters errors when writing to the filesystem, this edit will be aborted * when [commit] is called. The returned output stream does not throw IOExceptions. */ fun newSink(index: Int): Sink { synchronized(this@DiskLruCache) { check(!done) if (entry.currentEditor != this) { return blackholeSink() } if (!entry.readable) {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 34.7K bytes - Viewed (0) -
cni/pkg/repair/netns.go
} return link.Attrs().NetNsID, nil } func getLinkWithDestinationOf(ip string) (netlink.Link, error) { routes, err := netlink.RouteListFiltered( netlink.FAMILY_V4, &netlink.Route{Dst: &net.IPNet{IP: net.ParseIP(ip), Mask: net.CIDRMask(32, 32)}}, netlink.RT_FILTER_DST) if err != nil { return nil, err } if len(routes) == 0 {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Wed Dec 20 22:14:13 GMT 2023 - 4.8K bytes - Viewed (0) -
cni/pkg/iptables/iptables_linux.go
} } return nil } func AddLoopbackRoutes(cfg *Config) error { return forEachLoopbackRoute(cfg, netlink.RouteReplace) } func DelLoopbackRoutes(cfg *Config) error { return forEachLoopbackRoute(cfg, netlink.RouteDel) } func forEachLoopbackRoute(cfg *Config, f func(*netlink.Route) error) error { loopbackLink, err := netlink.LinkByName("lo") if err != nil {
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.3K bytes - Viewed (0) -
cni/pkg/ipset/nldeps_linux.go
family = unix.AF_INET6 } else { family = unix.AF_INET } err := netlink.IpsetCreate(name, "hash:ip", netlink.IpsetCreateOptions{Comments: true, Replace: true, Family: family}) if ipsetErr, ok := err.(nl.IPSetError); ok && ipsetErr == nl.IPSET_ERR_EXIST { return nil } return err } func (m *realDeps) destroySet(name string) error { err := netlink.IpsetDestroy(name) return err }
Go - Registered: Wed May 01 22:53:12 GMT 2024 - Last Modified: Tue Apr 30 22:24:38 GMT 2024 - 3.9K bytes - Viewed (0) -
okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/SimpleIdnaMappingTable.kt
while (!exhausted()) { if (buffer[0] != ' '.code.toByte()) return skip(1L) } } private fun BufferedSource.skipRestOfLine() { when (val newline = indexOf('\n'.code.toByte())) { -1L -> skip(buffer.size) // Exhaust this source. else -> skip(newline + 1) } } /** * Reads lines from `IdnaMappingTable.txt`. *
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 6.8K bytes - Viewed (0) -
.editorconfig
end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true # Markdown files sometimes need trailing whitespaces. [*.md] trim_trailing_whitespace = false [*.{yml,yaml}] indent_size = 2 [gradle/verification-metadata.xml] indent_size = 3 [subprojects/launcher/src/main/resources/release-features.txt]
Plain Text - Registered: Wed May 01 11:36:15 GMT 2024 - Last Modified: Mon Oct 02 11:48:19 GMT 2023 - 643 bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 3.9K bytes - Viewed (0) -
okhttp-sse/src/main/kotlin/okhttp3/sse/internal/ServerSentEventReader.kt
callback.onRetryChange(retryMs) } } -1 -> { val lineEnd = source.indexOfElement(CRLF) if (lineEnd != -1L) { // Skip the line and newline source.skip(lineEnd) source.select(options) } else { return false // No more newlines. } } else -> throw AssertionError() }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.3K bytes - Viewed (0)