diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/ByteArrayPool.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/ByteArrayPool.kt index f3b23df58..6d2f97436 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/ByteArrayPool.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/utils/io/ByteArrayPool.kt @@ -6,7 +6,7 @@ import kotlinx.io.pool.ObjectPool internal const val DEFAULT_BYTE_ARRAY_POOL_SIZE = 256 internal const val DEFAULT_BYTE_ARRAY_SIZE = 4096 -val ByteArrayPool: ObjectPool = ByteArrayPoolImpl +internal val ByteArrayPool: ObjectPool = ByteArrayPoolImpl private object ByteArrayPoolImpl : DefaultPool(DEFAULT_BYTE_ARRAY_POOL_SIZE) { override fun produceInstance(): ByteArray = ByteArray(DEFAULT_BYTE_ARRAY_SIZE)