Didier Villevalois
10/10/2023, 12:46 PMBufferedSource
property that tells me how many bytes I have already read. It seems there is no direct mean to do that. I have routines that read individual packets from a BufferedSource
. How would you proceed?mbonnin
10/10/2023, 12:58 PMBufferedSource
into another one that delegates to it and increments a byte counter?Didier Villevalois
10/10/2023, 1:00 PMBufferedSource
is a sealed interface.BufferedSource
? @jw Would you consider this a sufficient use-case to unseal the BufferedSource
interface? Or maybe should I contribute an OffsetCountingSource
directly to okio
? (PS: I see that Source
from kotlinx-io
is also sealed.)