java.lang.OutOfMemoryError: Failed to allocate a 1213486152 byte allocation with 5207199 free bytes and 507MB until OOM, target footprint 10414399, growth limit 536870912
mDataInputStream?.run {
var count = 0
while (count == 0) {
count = available()
}
val byteArray = ByteArray(count)
read(byteArray)
val str: String = String(byteArray, StandardCharsets.UTF_8)
LogUtils.d(TAG, "读取数据3${str}")
}