MCPcopy Create free account

hub / github.com/Br3nnabee/magium-recrystallized / functions

Functions72 in github.com/Br3nnabee/magium-recrystallized

↓ 11 callersFunctiontoVar
(shade: string)
tailwind.config.ts:3
↓ 10 callersMethodget
Get a chunk by key, bumping it to the front if found.
wasm_module/src/decoder.rs:155
↓ 10 callersFunctiongetStringFromWasm0
(ptr, len)
src/pkg/wasm_module.js:16
↓ 6 callersFunctiongetDataViewMemory0
()
src/pkg/wasm_module.js:98
↓ 6 callersFunctionhandleError
(f, args)
src/pkg/wasm_module.js:27
↓ 5 callersFunctionaddToExternrefTable0
(obj)
src/pkg/wasm_module.js:21
↓ 5 callersMethodget_raw_chunk
Retrieves the raw chunk bytes for `entry`, using HTTP Range if supported, otherwise falling back to a full fetch. Uses an LRU cache to avoid re-downlo
wasm_module/src/decoder.rs:1057
↓ 5 callersFunctionisLikeNone
(x)
src/pkg/wasm_module.js:92
↓ 4 callersFunctiongetUint8ArrayMemory0
()
src/pkg/wasm_module.js:9
↓ 4 callersFunctionpassStringToWasm0
(arg, malloc, realloc)
src/pkg/wasm_module.js:53
↓ 2 callersFunction__wbg_finalize_init
(instance, module)
src/pkg/wasm_module.js:652
↓ 2 callersFunction__wbg_get_imports
()
src/pkg/wasm_module.js:397
↓ 2 callersFunction__wbg_init_memory
(imports, memory)
src/pkg/wasm_module.js:648
↓ 2 callersFunctionfetchNodeFull
( nodeIdx: number )
src/lib/wasm.ts:147
↓ 2 callersFunctiongetClient
* Get (or create) the singleton WASM client for the configured story. * Ensures the WASM module is fully initialized before instantiation. * * @ret
src/lib/wasm.ts:66
↓ 1 callersMethod__destroy_into_raw
()
src/pkg/wasm_module.js:239
↓ 1 callersFunction__wbg_adapter_86
(arg0, arg1, arg2, arg3)
src/pkg/wasm_module.js:215
↓ 1 callersFunction__wbg_load
(module, imports)
src/pkg/wasm_module.js:366
↓ 1 callersMethod__wrap
(ptr)
src/pkg/wasm_module.js:231
↓ 1 callersFunctioncreateStatsStore
()
src/lib/stores/stats.ts:47
↓ 1 callersFunctiondebugString
(val)
src/pkg/wasm_module.js:136
↓ 1 callersFunctionfetchRootNodeFull
()
src/lib/wasm.ts:107
↓ 1 callersMethodinsert
Insert a new chunk, evicting the oldest if full.
wasm_module/src/decoder.rs:164
↓ 1 callersFunctionloadNode
(idx: number)
src/lib/stores/passagestore.ts:94
↓ 1 callersMethodload_node_full
(&self, idx: usize)
wasm_module/src/decoder.rs:293
↓ 1 callersMethodload_node_full
* Loads the node at the given index (into the parsed index vector), * fully fetching its content text and all outgoing edges—with labels * a
src/pkg/wasm_module.js:331
↓ 1 callersMethodload_root_node_full
* Loads the “root” node as specified by the metadata chunk * `ID_ROOT_POINTER`. This is equivalent to finding the metadata * entry whose ID
src/pkg/wasm_module.js:360
↓ 1 callersFunctionmakeMutClosure
(arg0, arg1, dtor, f)
src/pkg/wasm_module.js:111
↓ 1 callersFunctionrun
()
src-tauri/src/lib.rs:3
↓ 1 callersFunctionrun_guard
(fid: u32, gb: &Vec<u8>)
wasm_module/src/wasmtable.rs:1
↓ 1 callersFunctionset_panic_hook
()
wasm_module/src/utils.rs:1
↓ 1 callersFunctionupdate
()
src/lib/stores/displaysettings.ts:69
Function__wasm_start
()
wasm_module/src/lib.rs:54
Function__wasm_start
()
src/pkg/wasm_module.js:207
Function__wbg_adapter_24
(arg0, arg1, arg2)
src/pkg/wasm_module.js:211
Function__wbg_init
(module_or_path)
src/pkg/wasm_module.js:688
FunctionaddStat
(key: AllKeys, amount: number)
src/lib/stores/stats.ts:80
FunctionapplyColorTheme
* Apply a color theme to the document root and save it. * @param theme - Selected ColorTheme value
src/lib/stores/displaysettings.ts:42
Functioncb0
(arg0, arg1)
src/pkg/wasm_module.js:484
Methodchunk_ids
(&self)
wasm_module/src/decoder.rs:251
Methodchunk_ids
* Returns a JavaScript `Array` of all chunk IDs present in the file’s * parsed index, formatted as uppercase hex strings. * * Each entr
src/pkg/wasm_module.js:295
FunctioncloseMenu
()
src/lib/stores/state.ts:55
Methodconstructor
* Constructs a new `CyoaGame` instance by probing the remote file * at `path` for its total size and HTTP Range support, then fetching * and
src/pkg/wasm_module.js:275
Methoddecompress_payload
Decompresses the given `data` slice with zstd if `flags & 1 != 0`, otherwise returns `data` directly. # Parameters - `flags`: TLV flags byte (bit 0
wasm_module/src/decoder.rs:697
Methodfetch_full
Fetches the entire file at `url` without using Range requests. # Parameters - `win`: Browser window object. - `url`: URL of the `.cyoa` file. # Ret
wasm_module/src/decoder.rs:1005
Methodfetch_range
Fetches a specific byte range `[start..=end]` from the remote file via HTTP Range requests. # Parameters - `win`: Browser window object. - `url`: UR
wasm_module/src/decoder.rs:544
Methodfetch_ranges
Issues multiple `fetch_range` calls in parallel for each byte range, returning a `Vec` of each fetched segment. # Parameters - `win`: Browser window
wasm_module/src/decoder.rs:1032
Methodfree
()
src/pkg/wasm_module.js:246
Methodfrom
(err: GameError)
wasm_module/src/decoder.rs:73
FunctiongoTo
(idx: number)
src/lib/stores/passagestore.ts:126
FunctioninitSync
(module)
src/pkg/wasm_module.js:663
Functioninitialize
()
src/lib/stores/passagestore.ts:71
Methodload_root_node_full
(&self)
wasm_module/src/decoder.rs:453
Functionmain
()
src-tauri/build.rs:1
Functionmain
()
src-tauri/src/main.rs:4
Methodnew
Create a new cache with the given capacity.
wasm_module/src/decoder.rs:147
FunctionopenGame
()
src/lib/stores/state.ts:37
FunctionopenMenu
(substate?: MenuSubstate)
src/lib/stores/state.ts:50
FunctionopenStats
()
src/lib/stores/state.ts:42
Methodparse_content_text
Reads a UTF-8 text string from a `ChunkType::Content` payload. # Parameters - `data`: Decompressed TLV payload of a content chunk. # Returns - `Ok
wasm_module/src/decoder.rs:805
Methodparse_edge_label_dest_cids
Parses an edge’s metadata payload, returning `(label_cid, dest_cid)`. # Parameters - `data`: Decompressed TLV payload of a `ChunkType::Edge`. # Ret
wasm_module/src/decoder.rs:831
Methodparse_header
Parses the fixed‐length file header and returns the byte offset where the index blob begins. # Parameters - `header`: Byte slice of length `HEADER_L
wasm_module/src/decoder.rs:586
Methodparse_index
Parses the on‐disk index blob into a `Vec<IndexEntry>`. # Parameters - `blob`: Byte slice containing the index (starting with a u32 count). # Retur
wasm_module/src/decoder.rs:610
Methodparse_node_content_cid
Extracts the content‐CID (3‐byte ID) from a node’s TLV payload. # Parameters - `data`: Decompressed TLV payload of a `ChunkType::Node`. # Returns
wasm_module/src/decoder.rs:720
Methodparse_node_content_seq
Parse the content_sequence entries from a Node payload slice. Uses `skip_node_header_fields` to position the cursor, then reads: - u16: number of seq
wasm_module/src/decoder.rs:880
Methodparse_node_edges_ids
Extracts all outgoing edge‐CIDs (3‐byte IDs) from a node’s payload. # Parameters - `data`: Decompressed TLV payload of a `ChunkType::Node`. # Retur
wasm_module/src/decoder.rs:747
Methodparse_tlv_header
Reads a TLV chunk header from `raw` and returns: `(type, id, flags, compressed_len, uncompressed_len_opt, header_len)`. # Parameters - `raw`: Full c
wasm_module/src/decoder.rs:659
Methodprobe_range
Probes the remote file at `url` by requesting the first byte (bytes=0-0) to determine: 1. The total file size. 2. Whether the server supports HTTP Ran
wasm_module/src/decoder.rs:492
Functionreal
(...args)
src/pkg/wasm_module.js:113
FunctionresetDeltas
()
src/lib/stores/stats.ts:121
Methodskip_node_header_fields
Skip over common Node payload fields up to the content_sequence. Advances the cursor past: 1. Node ID (u16 length + bytes) 2. Default language (u8 le
wasm_module/src/decoder.rs:957
FunctiontoggleMenu
()
src/lib/stores/state.ts:63