Roman Elizarov | 1f74a2d | 2018-06-29 19:19:45 +0300 | [diff] [blame^] | 1 | /* |
2 | * Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. | ||||
3 | */ | ||||
4 | |||||
Sergey Mashkov | e86eb08 | 2017-12-04 18:45:05 +0300 | [diff] [blame] | 5 | package kotlinx.coroutines.experimental.io.jvm.javaio |
6 | |||||
7 | import kotlinx.io.pool.* | ||||
8 | |||||
9 | internal val ByteArrayPool = object : DefaultPool<ByteArray>(128) { | ||||
10 | override fun produceInstance() = ByteArray(4096) | ||||
11 | } |