altavir
11/20/2019, 7:06 AMBytes
interface provides input by input
method. The problem is that it could leak an Input that could survive closing of parent Bytes
and will be invalid. I propose to replace it with consumer function like described here: https://github.com/Kotlin/kotlinx-io/issues/71
Also Bytes
has size
function. I can't see a way to change size after creation, so I propose to change it to value and use lazy
delegate to compute it on first call.elizarov
11/20/2019, 7:10 AMaltavir
11/20/2019, 7:13 AM