forked from ruby/ruby.wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathext.rbs
36 lines (29 loc) · 1013 Bytes
/
ext.rbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module RubyWasmExt
type bytes = String
def self.preinitialize: (bytes module_bytes) -> bytes
class WasiVfs
def initialize: () -> void
def self.run_cli: (Array[String] args) -> void
def map_dir: (String guest_path, String host_path) -> void
def pack: (bytes module_bytes) -> bytes
end
class ComponentLink
def initialize: () -> void
def library: (String name, bytes module, bool dl_openable) -> void
def adapter: (String name, bytes module) -> void
def validate: (bool) -> void
def stack_size: (Integer) -> void
def stub_missing_functions: (bool) -> void
def use_built_in_libdl: (bool) -> void
def encode: () -> bytes
end
class ComponentEncode
def initialize: () -> void
def validate: (bool) -> void
def adapter: (String name, bytes module) -> void
def module: (bytes module) -> void
def realloc_via_memory_grow: (bool) -> void
def import_name_map: (Hash[String, String] map) -> void
def encode: () -> bytes
end
end