From d5fc392ecf845fd658f1cb486d37c22232dd8538 Mon Sep 17 00:00:00 2001 From: Him188 <Him188@mamoe.net> Date: Fri, 13 Dec 2019 09:02:31 +0800 Subject: [PATCH] Make ByteArrayPool internal --- .../commonMain/kotlin/net.mamoe.mirai/utils/io/ByteArrayPool.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<ByteArray> = ByteArrayPoolImpl +internal val ByteArrayPool: ObjectPool<ByteArray> = ByteArrayPoolImpl private object ByteArrayPoolImpl : DefaultPool<ByteArray>(DEFAULT_BYTE_ARRAY_POOL_SIZE) { override fun produceInstance(): ByteArray = ByteArray(DEFAULT_BYTE_ARRAY_SIZE)