Skip to content

oolong / oolong.random / nextBytes

nextBytes

(common) fun <Msg :Any> nextBytes(array:ByteArray, fromIndex:Int, toIndex:Int, msg: suspend CoroutineScope.(ByteArray) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextBytes(array:ByteArray, msg: suspend CoroutineScope.(ByteArray) -> Msg):Effect<Msg> (source) fun <Msg :Any> nextBytes(size:Int, msg: suspend CoroutineScope.(ByteArray) -> Msg):Effect<Msg> (source)

Call Random.nextBytes with a mapping of ByteArray to Msg.

Parameters

msg - map function of ByteArray to Msg

Return Effect of Msg for the generated ByteArray