Kotlin ByteArray 最简拆包方法

  fun ByteArray.chunked(size: Int): List {
        return toList().chunked(size) { it.toByteArray() }
    }

你可能感兴趣的:(kotlin,android)