CopyToJSON reads MessagePack from 'src' and copies it as JSON to 'dst' until EOF.
(dst io.Writer, src io.Reader)
| 51 | // CopyToJSON reads MessagePack from 'src' and copies it |
| 52 | // as JSON to 'dst' until EOF. |
| 53 | func CopyToJSON(dst io.Writer, src io.Reader) (n int64, err error) { |
| 54 | r := NewReader(src) |
| 55 | n, err = r.WriteToJSON(dst) |
| 56 | freeR(r) |
| 57 | return |
| 58 | } |
| 59 | |
| 60 | // WriteToJSON translates MessagePack from 'r' and writes it as |
| 61 | // JSON to 'w' until the underlying reader returns io.EOF. It returns |
searching dependent graphs…