HomeSort by relevance Sort by last modified time
    Searched full:writerfunc (Results 1 - 4 of 4) sorted by null

  /prebuilts/go/darwin-x86/src/io/
multi_test.go 145 // writerFunc is an io.Writer implemented by the underlying func.
146 type writerFunc func(p []byte) (int, error)
148 func (f writerFunc) Write(p []byte) (int, error) {
157 var writeDepth int // will contain the depth from which writerFunc.Writer was called
158 var w Writer = MultiWriter(writerFunc(func(p []byte) (int, error) {
173 if writeDepth != 4*(myDepth+2) { // 2 should be multiWriter.Write and writerFunc.Write
180 f1 := writerFunc(func(p []byte) (int, error) {
183 f2 := writerFunc(func(p []byte) (int, error) {
  /prebuilts/go/linux-x86/src/io/
multi_test.go 145 // writerFunc is an io.Writer implemented by the underlying func.
146 type writerFunc func(p []byte) (int, error)
148 func (f writerFunc) Write(p []byte) (int, error) {
157 var writeDepth int // will contain the depth from which writerFunc.Writer was called
158 var w Writer = MultiWriter(writerFunc(func(p []byte) (int, error) {
173 if writeDepth != 4*(myDepth+2) { // 2 should be multiWriter.Write and writerFunc.Write
180 f1 := writerFunc(func(p []byte) (int, error) {
183 f2 := writerFunc(func(p []byte) (int, error) {
  /prebuilts/go/darwin-x86/src/net/http/
requestwrite_test.go 753 type writerFunc func([]byte) (int, error)
755 func (f writerFunc) Write(p []byte) (int, error) { return f(p) }
771 writerFunc(func(p []byte) (n int, err error) {
  /prebuilts/go/linux-x86/src/net/http/
requestwrite_test.go 753 type writerFunc func([]byte) (int, error)
755 func (f writerFunc) Write(p []byte) (int, error) { return f(p) }
771 writerFunc(func(p []byte) (n int, err error) {

Completed in 162 milliseconds