ByteString
Wraps given bytes into a byte string.
Parameters
bytes
a sequence of bytes to be wrapped.
Samples
import kotlinx.io.bytestring.*
import kotlin.test.*
fun main() {
//sampleStart
val emptyByteString = ByteString()
assertTrue(emptyByteString.isEmpty())
assertEquals(0, emptyByteString.size)
val byteStringFromBytes = ByteString(1, 2, 3)
assertFalse(byteStringFromBytes.isEmpty())
assertEquals(3, byteStringFromBytes.size)
//sampleEnd
}