toggle menu
ktor
3.0.0
3.0.0
3.0.0-rc-1
3.0.0-beta-2
3.0.0-beta-1
2.3.12
2.2.4
2.0.3
1.6.8
jvm
switch theme
search in API
ktor-io
/
io.ktor.utils.io.pool
/
ByteBufferPool
Byte
Buffer
Pool
jvm
class
ByteBufferPool
(
capacity
:
Int
=
DEFAULT_POOL_CAPACITY
,
val
bufferSize
:
Int
=
DEFAULT_BUFFER_SIZE
)
:
DefaultPool
<
ByteBuffer
>
Members
Constructors
Byte
Buffer
Pool
Link copied to clipboard
jvm
constructor
(
capacity
:
Int
=
DEFAULT_POOL_CAPACITY
,
bufferSize
:
Int
=
DEFAULT_BUFFER_SIZE
)
Properties
buffer
Size
Link copied to clipboard
jvm
val
bufferSize
:
Int
capacity
Link copied to clipboard
jvm
actual
val
capacity
:
Int
Functions
borrow
Link copied to clipboard
jvm
actual
fun
borrow
(
)
:
ByteBuffer
dispose
Link copied to clipboard
jvm
actual
fun
dispose
(
)
recycle
Link copied to clipboard
jvm
actual
fun
recycle
(
instance
:
ByteBuffer
)