ByteStream

Represents an abstract read-only stream of bytes

Inheritors

Types

Variant of a ByteStream with payload represented as an in-memory byte buffer.

Properties

The content length if known

Flag indicating if the body can only be consumed once. If false the underlying stream must be capable of being replayed.

Inherited functions

Consume the ByteStream and pull the entire contents into memory as a ByteArray. Only do this if you are sure the contents fit in-memory as this will read the entire contents of a streaming variant.

Return a Flow that consumes the underlying ByteStream when collected.

Write the contents of this ByteStream to file and close it

Write the contents of this ByteStream to file at the given path

You Might Also Like