toggle menu
Wasi-emscripten-host
common
switch theme
search in API
wasm-core
/
at.released.weh.wasm.core.memory
Package-level
declarations
Types
Functions
Properties
Types
Memory
Link copied to clipboard
interface
Memory
:
ReadOnlyMemory
Memory
Raw
Sink
Link copied to clipboard
abstract
class
MemoryRawSink
(
baseAddr
:
WasmPtr
,
toAddrExclusive
:
WasmPtr
)
:
RawSink
Memory
Raw
Source
Link copied to clipboard
abstract
class
MemoryRawSource
(
baseAddr
:
WasmPtr
,
toAddrExclusive
:
WasmPtr
)
:
RawSource
Pages
Link copied to clipboard
class
Pages
(
val
count
:
Long
)
Read
Only
Memory
Link copied to clipboard
interface
ReadOnlyMemory
Properties
WASM_MEMORY_32_MAX_PAGES
Link copied to clipboard
val
WASM_MEMORY_32_MAX_PAGES
:
Pages
WASM_MEMORY_64_MAX_PAGES
Link copied to clipboard
val
WASM_MEMORY_64_MAX_PAGES
:
Pages
WASM_MEMORY_DEFAULT_MAX_PAGES
Link copied to clipboard
val
WASM_MEMORY_DEFAULT_MAX_PAGES
:
Pages
WASM_MEMORY_PAGE_SIZE
Link copied to clipboard
const
val
WASM_MEMORY_PAGE_SIZE
:
Long
Functions
read
Nullable
Null
Terminated
String
Link copied to clipboard
fun
ReadOnlyMemory
.
readNullableNullTerminatedString
(
offset
:
WasmPtr
)
:
String
?
read
Null
Terminated
String
Link copied to clipboard
fun
ReadOnlyMemory
.
readNullTerminatedString
(
offset
:
WasmPtr
)
:
String
read
Ptr
Link copied to clipboard
fun
ReadOnlyMemory
.
readPtr
(
addr
:
WasmPtr
)
:
WasmPtr
read
U32
Link copied to clipboard
fun
ReadOnlyMemory
.
readU32
(
addr
:
WasmPtr
)
:
<Error class: unknown class>
read
U64
Link copied to clipboard
fun
ReadOnlyMemory
.
readU64
(
addr
:
WasmPtr
)
:
<Error class: unknown class>
read
U8
Link copied to clipboard
fun
ReadOnlyMemory
.
readU8
(
addr
:
WasmPtr
)
:
<Error class: unknown class>
sink
With
Max
Size
Link copied to clipboard
fun
Memory
.
sinkWithMaxSize
(
fromAddr
:
WasmPtr
,
maxSize
:
Int
)
:
RawSink
source
With
Max
Size
Link copied to clipboard
fun
ReadOnlyMemory
.
sourceWithMaxSize
(
fromAddr
:
WasmPtr
,
maxSize
:
Int
)
:
RawSource
write
Null
Terminated
String
Link copied to clipboard
fun
Memory
.
writeNullTerminatedString
(
offset
:
WasmPtr
,
value
:
String
)
:
Int
write
Ptr
Link copied to clipboard
fun
Memory
.
writePtr
(
addr
:
WasmPtr
,
data
:
WasmPtr
)
write
U32
Link copied to clipboard
fun
Memory
.
writeU32
(
addr
:
WasmPtr
,
data
:
<Error class: unknown class>
)
write
U64
Link copied to clipboard
fun
Memory
.
writeU64
(
addr
:
WasmPtr
,
data
:
<Error class: unknown class>
)
write
U8
Link copied to clipboard
fun
Memory
.
writeU8
(
addr
:
WasmPtr
,
data
:
<Error class: unknown class>
)