bytes

open fun bytes(content: ByteArray): Source

Returns a new source from specified byte array.

Return

a new source from specified byte array

Parameters

content

specified byte array

open fun bytes(content: ByteArray, offset: Int, length: Int): Source

Returns a new source from specified portion of byte array.

Return

a new source from specified portion of byte array

Parameters

content

specified byte array

offset

the start offset of the portion of the array to read

length

the length of the portion of the array to read