Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 299 for writeLoc (0.41 sec)

  1. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            def stream = new ByteArrayOutputStream()
            def result = resource.writeTo(stream)
            result.bytesRead == 4
            stream.toString() == "1234"
    
            file.setText("abc")
            def stream2 = new ByteArrayOutputStream()
            def result2 = resource.writeTo(stream2)
            result2.bytesRead == 3
            stream2.toString() == "abc"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/snippets/tutorial/manifest/groovy/build.gradle

                    if (details.key == 'foo') {
                        details.exclude()
                    }
                }
            }
        }
    }
    // end::merge[]
    
    // tag::write[]
    tasks.named('jar') { manifest.writeTo(layout.buildDirectory.file('mymanifest.mf')) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/tutorial/manifest/kotlin/build.gradle.kts

                    }
                    if (key == "foo") {
                        exclude()
                    }
                })
            }
        }
    }
    // end::merge[]
    
    // tag::write[]
    tasks.jar { manifest.writeTo(layout.buildDirectory.file("mymanifest.mf")) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/report/AmbiguousBindingReporter.java

        }
    
        public String asString() {
            StringWriter string = new StringWriter();
            writeTo(new PrintWriter(string));
            return string.toString();
        }
    
        public void writeTo(PrintWriter writer) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

            @Override public long contentLength() {
              return -1; // We don't know the compressed length in advance!
            }
    
            @Override public void writeTo(BufferedSink sink) throws IOException {
              BufferedSink gzipSink = Okio.buffer(new GzipSink(sink));
              body.writeTo(gzipSink);
              gzipSink.close();
            }
          };
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat May 25 18:02:55 UTC 2019
    - 3.8K bytes
    - Viewed (0)
  6. src/net/unixsock_plan9.go

    	return 0, nil, syscall.EPLAN9
    }
    
    func (c *UnixConn) readMsg(b, oob []byte) (n, oobn, flags int, addr *UnixAddr, err error) {
    	return 0, 0, 0, nil, syscall.EPLAN9
    }
    
    func (c *UnixConn) writeTo(b []byte, addr *UnixAddr) (int, error) {
    	return 0, syscall.EPLAN9
    }
    
    func (c *UnixConn) writeMsg(b, oob []byte, addr *UnixAddr) (n, oobn int, err error) {
    	return 0, 0, syscall.EPLAN9
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 29 23:57:04 UTC 2018
    - 1.2K bytes
    - Viewed (0)
  7. src/internal/poll/file_plan9.go

    }
    
    func (fdmu *FDMutex) ReadLock() bool {
    	return fdmu.fdmu.rwlock(true)
    }
    
    func (fdmu *FDMutex) ReadUnlock() bool {
    	return fdmu.fdmu.rwunlock(true)
    }
    
    func (fdmu *FDMutex) WriteLock() bool {
    	return fdmu.fdmu.rwlock(false)
    }
    
    func (fdmu *FDMutex) WriteUnlock() bool {
    	return fdmu.fdmu.rwunlock(false)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 972 bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java-library/quickstart/kotlin/src/main/java/org/gradle/HttpClientWrapper.java

            HttpGet request = new HttpGet(url);
            try {
                HttpEntity entity = doGet(request);
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
                entity.writeTo(baos);
                return baos.toByteArray();
            } catch (Exception e) {
                ExceptionUtils.rethrow(e); // this dependency is internal only
            } finally {
                request.releaseConnection();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/MockResponseBody.kt

     * called by readers.
     */
    @ExperimentalOkHttpApi
    interface MockResponseBody {
      /** The length of this response in bytes, or -1 if unknown. */
      val contentLength: Long
    
      @Throws(IOException::class)
      fun writeTo(sink: BufferedSink)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Tue Jan 23 14:31:42 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  10. src/internal/poll/sendfile_bsd.go

    func SendFile(dstFD *FD, src int, pos, remain int64) (written int64, err error, handled bool) {
    	defer func() {
    		TestHookDidSendFile(dstFD, src, written, err, handled)
    	}()
    	if err := dstFD.writeLock(); err != nil {
    		return 0, err, false
    	}
    	defer dstFD.writeUnlock()
    
    	if err := dstFD.pd.prepareWrite(dstFD.isFile); err != nil {
    		return 0, err, false
    	}
    
    	dst := dstFD.Sysfd
    	for remain > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 1.5K bytes
    - Viewed (0)
Back to top