ByteArrayBuilder
Grow-on-demand byte buffer. Pure Kotlin (no platform OutputStream), so it works in commonMain across every target, and it stores into a contiguous primitive array rather than boxing into a MutableList<Byte>. The bencode encoder and the peer wire-protocol codec both build their output through this.
Functions
Link copied to clipboard
Append the low byte of each char in s, for pure-ASCII tokens (bencode digits, ':').
Link copied to clipboard