Adds a conversion from ByteStream to Flow<ByteArray>
Adds a converstion from Flow<ByteArray> to ByteStream
Questions:
Should ByteStream.Buffer try to respect the bufferSizeHint parameter? The easiest thing to do was to ignore it which is also the most performant (otherwise we'll be chunking it and making additional copies).
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue \
closes https://github.com/awslabs/aws-sdk-kotlin/issues/612
Description of changes
ByteStream
toFlow<ByteArray>
Flow<ByteArray>
toByteStream
Questions:
ByteStream.Buffer
try to respect thebufferSizeHint
parameter? The easiest thing to do was to ignore it which is also the most performant (otherwise we'll be chunking it and making additional copies).By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.