- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of about 10,000 for copy2 (0.15 sec)
-
src/mime/multipart/formdata.go
if _, err := file.Write(b.Bytes()); err != nil { return nil, err } if copyBuf == nil { copyBuf = make([]byte, 32*1024) // same buffer size as io.Copy uses } // os.File.ReadFrom will allocate its own copy buffer if we let io.Copy use it. type writerOnly struct{ io.Writer } remainingSize, err := io.CopyBuffer(writerOnly{file}, p, copyBuf) if err != nil { return nil, err }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 16:12:35 UTC 2024 - 7.7K bytes - Viewed (0) -
src/io/io.go
// // If src implements [WriterTo], // the copy is implemented by calling src.WriteTo(dst). // Otherwise, if dst implements [ReaderFrom], // the copy is implemented by calling dst.ReadFrom(src). func Copy(dst Writer, src Reader) (written int64, err error) { return copyBuffer(dst, src, nil) } // CopyBuffer is identical to Copy except that it stages through the // provided buffer (if one is required) rather than allocating a
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:34:10 UTC 2024 - 21.6K bytes - Viewed (0) -
src/internal/trace/batch.go
} if size > go122.MaxBatchSize { return batch{}, gen, fmt.Errorf("invalid batch size %d, maximum is %d", size, go122.MaxBatchSize) } // Copy out the batch for later processing. var data bytes.Buffer data.Grow(int(size)) n, err := io.CopyN(&data, r, int64(size)) if n != int64(size) { return batch{}, gen, fmt.Errorf("failed to read full batch: read %d but wanted %d", n, size) } if err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.9K bytes - Viewed (0) -
src/net/http/transfer_test.go
f, err := os.CreateTemp("", "net-http-newfilefunc") if err != nil { return nil, nil, err } // Write some bytes to the file to enable reading. if _, err := io.CopyN(f, rand.Reader, nBytes); err != nil { return nil, nil, fmt.Errorf("failed to write data to file: %v", err) } if _, err := f.Seek(0, 0); err != nil { return nil, nil, fmt.Errorf("failed to seek to front: %v", err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 23:16:28 UTC 2023 - 9.1K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/integration/TaskContainerDslIntegrationTest.kt
val t7: Copy = tasks.create("cathedral", Copy::class) val t8: Copy = tasks.create<Copy>("cabin") val t9: Task = tasks.create("castle") { description += "!" } val t10: Copy = tasks.create("valley", Copy::class) { description += "!" destinationDir = file("out") } val t11: Copy = tasks.create<Copy>("hill") {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Sep 30 16:17:27 UTC 2023 - 15K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/internal/changedetection/state/TaskTypeUpToDateIntegrationTest.groovy
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Aug 30 07:31:26 UTC 2022 - 6.5K bytes - Viewed (0) -
subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy
buildScript ''' task (copy, type:Copy) { from 'files' into 'dest' } ''' when: run 'copy' then: executedAndNotSkipped(":copy") when: file("files/sub/empty").createDir() run 'copy' then: executedAndNotSkipped(":copy") when: run 'copy'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 03 15:21:23 UTC 2024 - 67.9K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/files/copy/kotlin/build.gradle.kts
} } // end::copy-task-with-patterns[] // tag::copy-task-2[] tasks.register<Copy>("anotherCopyTask") { // Copy everything under src/main/webapp from("src/main/webapp") // Copy a single file from("src/staging/index.html") // Copy the output of a task from(copyTask) // Copy the output of a task using Task outputs explicitly.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 8.2K bytes - Viewed (0) -
platforms/documentation/docs/src/snippets/files/copy/groovy/build.gradle
details.file.text.contains('DRAFT') } } // end::copy-task-with-patterns[] // tag::copy-task-2[] tasks.register('anotherCopyTask', Copy) { // Copy everything under src/main/webapp from 'src/main/webapp' // Copy a single file from 'src/staging/index.html' // Copy the output of a task from copyTask // Copy the output of a task using Task outputs explicitly.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Nov 27 17:53:42 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/AbstractPropertySpec.groovy
then: property.isFinalized() } def "can obtain shallow copy of property"() { given: def property = propertyWithValue(someValue()) when: def copy = property.shallowCopy() then: copy.orNull == someValue() } def "shallow copy of property does not follow changes to original"() { given:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 07 12:47:05 UTC 2024 - 6.8K bytes - Viewed (0)