../
kernel
functions
add
all
apply_delta
assert
atan2
btn
btnp
camera
cd
char
chooser
circ
circfill
clip
cls
color
cos
count
cp
create_delta
create_gui
create_process
cursor
date
del
deli
env
error
exit
fetch
fetch_metadata
fget
fillp
foreach
fset
fstat
fullpath
get_clipboard
get_display
get_draw_target
get_spr
include
input
key
keyp
line
ls
map
max
memcpy
memmap
memset
menuitem
mget
mkdir
mouse
mouselock
mset
music
mv
note
on_event
open
oval
ovalfill
peek
peek2
peek4
peek8
peektext
pget
pid
pod
poke
poke2
poke4
poke8
printh
pset
pwd
readtext
rect
rectfill
rm
rrect
rrectfill
scoresub
send_message
set_clipboard
set_draw_target
set_spr
sfx
sin
socket
split
spr
sspr
stat
stop
store
store_metadata
sub
time
tokenoid
type
unmap
unpod
userdata
vec
vid
window
memmap(ud,addr,[offset],[len])
Overview
memmap allows you to write a 4k (0x1000) userdata, ud to an address, addr in memory
Source: source.lua
Arguments
ud
The userdata that is mapped into memory
addr
The address to map the userdata into
Mapping to address 0x100000 automatically unmaps the loaded map data & replacing the loaded map in memory with ud.
[offset]
Unknown
Presuming that it's the offset in either memory in the userdata
[len]
Unknown
Presuming that it's the length of the userdata
Returns
Returns the inputted ud
Allows things such as:
pfxdat = fetch("tune.sfx"):memmap(0x30000)