Sergey Mashkov | 6ca9a27 | 2017-07-25 20:10:27 +0300 | [diff] [blame] | 1 | package kotlinx.coroutines.experimental.io.packet |
| 2 | |
Sergey Mashkov | f34175e | 2017-09-06 22:10:34 +0300 | [diff] [blame] | 3 | import kotlinx.coroutines.experimental.io.internal.* |
Sergey Mashkov | 6d05993 | 2017-10-06 18:46:23 +0300 | [diff] [blame] | 4 | import kotlinx.io.core.* |
| 5 | import kotlinx.io.pool.* |
Sergey Mashkov | 6ca9a27 | 2017-07-25 20:10:27 +0300 | [diff] [blame] | 6 | |
Sergey Mashkov | 5feaf69 | 2017-09-06 21:50:51 +0300 | [diff] [blame] | 7 | internal val PACKET_BUFFER_SIZE = getIOIntProperty("PacketBufferSize", 4096) |
Sergey Mashkov | 5428565 | 2017-09-28 16:55:10 +0300 | [diff] [blame] | 8 | internal val PACKET_BUFFER_POOL_SIZE = getIOIntProperty("PacketBufferPoolSize", 128) |
Sergey Mashkov | 57906eb | 2017-09-19 14:08:06 +0300 | [diff] [blame] | 9 | internal val PACKET_MAX_COPY_SIZE = getIOIntProperty("PacketMaxCopySize", 500) |
Roman Elizarov | 8376203 | 2017-08-08 19:58:40 +0300 | [diff] [blame] | 10 | |
Sergey Mashkov | 6d05993 | 2017-10-06 18:46:23 +0300 | [diff] [blame] | 11 | fun WritePacket(headerSizeHint: Int = 0): ByteWritePacket = BytePacketBuilder(headerSizeHint) |