korlibs
Toggle table of contents
6.1.0-SNAPSHOT
android
common
js
jvm
native
wasmJs
Target filter
android
common
js
jvm
native
wasmJs
Switch theme
Search in API
Skip to content
korlibs
korlibs-memory
/
korlibs.memory
/
Buffer
/
Companion
Companion
android
common
js
jvm
native
wasmJs
actual
object
Companion
expect
object
Companion
actual
object
Companion
actual
object
Companion
actual
object
Companion
actual
object
Companion
Members
Members & Extensions
Functions
alloc
Direct
Link copied to clipboard
fun
Buffer.Companion
.
allocDirect
(
size
:
Int
)
:
Buffer
alloc
No
Direct
Link copied to clipboard
fun
Buffer.Companion
.
allocNoDirect
(
size
:
Int
)
:
Buffer
copy
Link copied to clipboard
android
common
js
jvm
native
wasmJs
actual
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
expect
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
actual
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
actual
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
actual
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
actual
fun
copy
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
equals
Link copied to clipboard
android
common
js
jvm
native
wasmJs
actual
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
expect
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
actual
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
actual
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
actual
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
actual
fun
equals
(
src
:
Buffer
,
srcPosBytes
:
Int
,
dst
:
Buffer
,
dstPosBytes
:
Int
,
sizeInBytes
:
Int
)
:
Boolean
mmap
Link copied to clipboard
android
common
js
jvm
native
wasmJs
actual
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
)
:
Buffer
expect
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
=
BufferMapMode.READ_WRITE
)
:
Buffer
actual
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
)
:
Buffer
actual
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
)
:
Buffer
actual
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
)
:
Buffer
actual
fun
mmap
(
path
:
String
,
position
:
Long
,
size
:
Long
,
mode
:
BufferMapMode
)
:
Buffer