Add stream_utils::CopyData() to copy data between two streams

This is a useful utility function to copy data from one stream
into another. It can be used in a variety of cases, e.g. reading
data from a stream into memory - create memory stream and copy data
from source stream into it.

Change-Id: Iccdd29966efaf76b90f5d89faa5bfbf80e8586f3
3 files changed