wrapContentReader adapts an io.ReadCloser (already detached from the VM, so the caller owns closing it) into an IContentReader for thumbnail responses.
(rc io.ReadCloser)
| 350 | // wrapContentReader adapts an io.ReadCloser (already detached from the VM, so |
| 351 | // the caller owns closing it) into an IContentReader for thumbnail responses. |
| 352 | func wrapContentReader(rc io.ReadCloser) types.IContentReader { |
| 353 | return readCloserContentReader{rc} |
| 354 | } |
| 355 | |
| 356 | type readCloserContentReader struct { |
| 357 | rc io.ReadCloser |