toggle menu
shake
0.1.0
common
switch theme
search in API
com.shakelang.shake.bytecode.interpreter
/
com.shakelang.shake.bytecode.interpreter.heap
/
Malloc
Malloc
class
Malloc
(
val
globalMemory
:
GlobalMemory
)
(
source
)
Members
Constructors
Malloc
Link copied to clipboard
constructor
(
globalMemory
:
GlobalMemory
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
free
Start
Pointer
Link copied to clipboard
var
freeStartPointer
:
Long
free
Tail
Pointer
Link copied to clipboard
var
freeTailPointer
:
Long
global
Memory
Link copied to clipboard
val
globalMemory
:
GlobalMemory
header
Size
Link copied to clipboard
val
headerSize
:
Int
=
16
size
Link copied to clipboard
var
size
:
Long
used
Start
Pointer
Link copied to clipboard
var
usedStartPointer
:
Long
used
Tail
Pointer
Link copied to clipboard
var
usedTailPointer
:
Long
Functions
free
Link copied to clipboard
fun
free
(
headerPointer
:
Long
)
free
Pointer
Link copied to clipboard
fun
freePointer
(
pointer
:
Long
)
malloc
Link copied to clipboard
fun
malloc
(
size
:
Long
)
:
Long
read
Header
Link copied to clipboard
fun
readHeader
(
pointer
:
Long
)
:
MallocHeader
read
Header
For
Link copied to clipboard
fun
readHeaderFor
(
pointer
:
Long
)
:
MallocHeader
write
Header
Link copied to clipboard
fun
writeHeader
(
pointer
:
Long
,
header
:
MallocHeader
)
write
Header
For
Link copied to clipboard
fun
writeHeaderFor
(
pointer
:
Long
,
header
:
MallocHeader
)