asByteStream

fun File.asByteStream(start: Long = 0, endInclusive: Long = length() - 1): <Error class: unknown class>

Create a ByteStream from a file


fun File.asByteStream(range: LongRange): <Error class: unknown class>

Create a ByteStream from a file with the given range


fun Path.asByteStream(start: Long = 0, endInclusive: Long = -1): <Error class: unknown class>

Create a ByteStream from a path


fun Path.asByteStream(range: LongRange): <Error class: unknown class>

Create a ByteStream from a path with the given range


fun InputStream.asByteStream(contentLength: Long? = null): <Error class: unknown class>

Create a ByteStream.SourceStream that reads from this InputStream

Parameters

contentLength

If specified, indicates how many bytes remain in this stream. Defaults to null.