12 private const val STRING_DELIMITER_317 = 10.toByte()
14 private val stringByteProcessor317 = ByteProcessor.IndexOfProcessor(STRING_DELIMITER_317)
17 fun ByteBuf.readStringArray(): ByteArray {
18 val start = readerIndex()
20 val end = forEachByte(stringByteProcessor317)
25 val length = end - start
26 val bytes = ByteArray(length)
34 fun ByteBuf.readString(charset: Charset = Charsets.UTF_8): String {
35 val start = readerIndex()
37 val end = forEachByte(stringByteProcessor317)
42 val length = end - start
43 val string = toString(start, length, charset)