tlog.app/go/tlog@v0.23.1/convert/copy.go (about)

     1  package convert
     2  
     3  import (
     4  	"io"
     5  
     6  	"tlog.app/go/tlog/tlwire"
     7  )
     8  
     9  func Copy(w io.Writer, r io.Reader) (int64, error) {
    10  	d := tlwire.NewStreamDecoder(r)
    11  
    12  	return d.WriteTo(w)
    13  }