asByteStream

fun File.asByteStream(start: Long = 0, endInclusive: Long = length() - 1): ByteStream

Create a ByteStream from a file


fun File.asByteStream(range: LongRange): ByteStream

Create a ByteStream from a file with the given range


fun Path.asByteStream(start: Long = 0, endInclusive: Long = -1): ByteStream

Create a ByteStream from a path


fun Path.asByteStream(range: LongRange): ByteStream

Create a ByteStream from a path with the given range