Jake Wharton
Jake Wharton
I _think_ I'd like to argue this is working as intended. And possibly, instead, that we have an API design problem here. The variance on a type parameter should only...
Gotta see if we can drop this now
You can already wrap an existing `ByteArray` into a `ByteString` with [`UnsafeByteStringOperations.wrapUnsafe`](https://github.com/Kotlin/kotlinx-io/blob/ff2c5496ce98ec1623b2d0a07161f86b93906c1a/bytestring/common/src/unsafe/UnsafeByteStringOperations.kt#L24-L30). > Maybe OT, but while we're talking about an easy way to initialize a `ByteString` with an existing...
These will also need intrinsics so that they don't allocate for simple loops, but that can be tracked/added separately.
I don't think it matters all that much. I would probably wait, to ensure these are acceptable APIs first.
Added a test-app screen for this in #2121
The problem is the the "Buffered" in `BufferedSink` comes from its use of `Buffer` to implement intermediate storage for higher-level APIs than a raw `Sink`. And that `Buffer` is exposed...
> The proper module name. Definitely would vote for "common" or "metadata" over "trampoline".
Yeah it's a good question. I have a few opinions on it: - Speed is a feature. Computers felt faster 20 years ago then they do today because abstraction and...
Maybe we can write Detekt rules for some of these?