- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 831 for Sendfile (0.28 sec)
-
src/net/sendfile_test.go
if called { t.Error("internal/poll.SendFile called multiple times, want one call") } called = true gotHandled = handled gotFD = dstFD } f() if !called { t.Error("internal/poll.SendFile was not called, want it to be") return } if !gotHandled { t.Error("internal/poll.SendFile did not handle the write, want it to") return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 12.1K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file_linux.cc
#include <limits.h> #include <stdint.h> #include <sys/sendfile.h> #include "tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h" namespace tf_posix_filesystem { // Transfers up to `size` bytes from `dst_fd` to `src_fd`. // // This method uses `sendfile` specific to linux after 2.6.33. int CopyFileContents(int dst_fd, int src_fd, off_t size) { off_t offset = 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 22 21:23:55 UTC 2019 - 1.5K bytes - Viewed (0) -
platforms/ide/tooling-api/src/integTest/groovy/org/gradle/integtests/tooling/ToolingApiRemoteIntegrationTest.groovy
def "downloads distribution with valid user-agent information"() { given: server.expect(server.get("/custom-dist.zip").expectUserAgent(matchesNameAndVersion("Gradle Tooling API", GradleVersion.current().getVersion())).sendFile(distribution.binDistribution)) and: toolingApi.withConnector { it.useDistribution(URI.create("http://localhost:${server.port}/custom-dist.zip")) } when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Sep 26 14:49:20 UTC 2023 - 10.9K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpIntegrationTest.groovy
given: server.expect(server.head("/$TEST_DISTRIBUTION_URL")) prepareWrapper(getDefaultBaseUrl()) server.expect(server.get("/$TEST_DISTRIBUTION_URL").sendFile(distribution.binDistribution)) when: def result = wrapperExecuter.withTasks('hello').run() then: assertThat(result.output, containsString('hello')) when:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 10.7K bytes - Viewed (0) -
platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperHttpsIntegrationTest.groovy
prepareWrapper(getAuthenticatedBaseUrl()) server.expect(server.get("/$TEST_DISTRIBUTION_URL") .expectUserAgent(matchesNameAndVersion("gradlew", Download.UNKNOWN_VERSION)) .sendFile(distribution.binDistribution)) when: result = wrapperExecuter.withTasks('hello').run() then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 23 05:54:32 UTC 2024 - 7.4K bytes - Viewed (0) -
src/internal/poll/sendfile_windows.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package poll import ( "io" "syscall" ) // SendFile wraps the TransmitFile call. func SendFile(fd *FD, src syscall.Handle, n int64) (written int64, err error) { defer func() { TestHookDidSendFile(fd, 0, written, err, written > 0) }() if fd.kind == kindPipe {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 2.2K bytes - Viewed (0) -
src/syscall/syscall_darwin_amd64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 21:34:30 UTC 2023 - 1.9K bytes - Viewed (0) -
src/syscall/syscall_darwin_arm64.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Nov 27 21:34:30 UTC 2023 - 1.8K bytes - Viewed (0) -
src/net/sendfile_stub.go
// license that can be found in the LICENSE file. //go:build !(linux || (darwin && !ios) || dragonfly || freebsd || solaris || windows) package net import "io" const supportsSendfile = false func sendFile(c *netFD, r io.Reader) (n int64, err error, handled bool) { return 0, nil, false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 18:12:56 UTC 2024 - 403 bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/posix/copy_file.h
#define TENSORFLOW_C_EXPERIMENTAL_FILESYSTEM_PLUGINS_POSIX_COPY_FILE_H_ #include <sys/stat.h> namespace tf_posix_filesystem { // Transfers up to `size` bytes from `dst_fd` to `src_fd`. // // This method uses `sendfile` if available (i.e., linux 2.6.33 or later) or an // intermediate buffer if not. // // Returns number of bytes transferred or -1 on failure. int CopyFileContents(int dst_fd, int src_fd, off_t size);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Nov 22 21:23:55 UTC 2019 - 1.2K bytes - Viewed (0)