Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Br3nnabee/magium-recrystallized
/ functions
Functions
72 in github.com/Br3nnabee/magium-recrystallized
⨍
Functions
72
◇
Types & classes
22
↓ 11 callers
Function
toVar
(shade: string)
tailwind.config.ts:3
↓ 10 callers
Method
get
Get a chunk by key, bumping it to the front if found.
wasm_module/src/decoder.rs:155
↓ 10 callers
Function
getStringFromWasm0
(ptr, len)
src/pkg/wasm_module.js:16
↓ 6 callers
Function
getDataViewMemory0
()
src/pkg/wasm_module.js:98
↓ 6 callers
Function
handleError
(f, args)
src/pkg/wasm_module.js:27
↓ 5 callers
Function
addToExternrefTable0
(obj)
src/pkg/wasm_module.js:21
↓ 5 callers
Method
get_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 callers
Function
isLikeNone
(x)
src/pkg/wasm_module.js:92
↓ 4 callers
Function
getUint8ArrayMemory0
()
src/pkg/wasm_module.js:9
↓ 4 callers
Function
passStringToWasm0
(arg, malloc, realloc)
src/pkg/wasm_module.js:53
↓ 2 callers
Function
__wbg_finalize_init
(instance, module)
src/pkg/wasm_module.js:652
↓ 2 callers
Function
__wbg_get_imports
()
src/pkg/wasm_module.js:397
↓ 2 callers
Function
__wbg_init_memory
(imports, memory)
src/pkg/wasm_module.js:648
↓ 2 callers
Function
fetchNodeFull
( nodeIdx: number )
src/lib/wasm.ts:147
↓ 2 callers
Function
getClient
* 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 callers
Method
__destroy_into_raw
()
src/pkg/wasm_module.js:239
↓ 1 callers
Function
__wbg_adapter_86
(arg0, arg1, arg2, arg3)
src/pkg/wasm_module.js:215
↓ 1 callers
Function
__wbg_load
(module, imports)
src/pkg/wasm_module.js:366
↓ 1 callers
Method
__wrap
(ptr)
src/pkg/wasm_module.js:231
↓ 1 callers
Function
createStatsStore
()
src/lib/stores/stats.ts:47
↓ 1 callers
Function
debugString
(val)
src/pkg/wasm_module.js:136
↓ 1 callers
Function
fetchRootNodeFull
()
src/lib/wasm.ts:107
↓ 1 callers
Method
insert
Insert a new chunk, evicting the oldest if full.
wasm_module/src/decoder.rs:164
↓ 1 callers
Function
loadNode
(idx: number)
src/lib/stores/passagestore.ts:94
↓ 1 callers
Method
load_node_full
(&self, idx: usize)
wasm_module/src/decoder.rs:293
↓ 1 callers
Method
load_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 callers
Method
load_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 callers
Function
makeMutClosure
(arg0, arg1, dtor, f)
src/pkg/wasm_module.js:111
↓ 1 callers
Function
run
()
src-tauri/src/lib.rs:3
↓ 1 callers
Function
run_guard
(fid: u32, gb: &Vec<u8>)
wasm_module/src/wasmtable.rs:1
↓ 1 callers
Function
set_panic_hook
()
wasm_module/src/utils.rs:1
↓ 1 callers
Function
update
()
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
Function
addStat
(key: AllKeys, amount: number)
src/lib/stores/stats.ts:80
Function
applyColorTheme
* Apply a color theme to the document root and save it. * @param theme - Selected ColorTheme value
src/lib/stores/displaysettings.ts:42
Function
cb0
(arg0, arg1)
src/pkg/wasm_module.js:484
Method
chunk_ids
(&self)
wasm_module/src/decoder.rs:251
Method
chunk_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
Function
closeMenu
()
src/lib/stores/state.ts:55
Method
constructor
* 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
Method
decompress_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
Method
fetch_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
Method
fetch_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
Method
fetch_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
Method
free
()
src/pkg/wasm_module.js:246
Method
from
(err: GameError)
wasm_module/src/decoder.rs:73
Function
goTo
(idx: number)
src/lib/stores/passagestore.ts:126
Function
initSync
(module)
src/pkg/wasm_module.js:663
Function
initialize
()
src/lib/stores/passagestore.ts:71
Method
load_root_node_full
(&self)
wasm_module/src/decoder.rs:453
Function
main
()
src-tauri/build.rs:1
Function
main
()
src-tauri/src/main.rs:4
Method
new
Create a new cache with the given capacity.
wasm_module/src/decoder.rs:147
Function
openGame
()
src/lib/stores/state.ts:37
Function
openMenu
(substate?: MenuSubstate)
src/lib/stores/state.ts:50
Function
openStats
()
src/lib/stores/state.ts:42
Method
parse_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
Method
parse_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
Method
parse_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
Method
parse_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
Method
parse_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
Method
parse_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
Method
parse_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
Method
parse_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
Method
probe_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
Function
real
(...args)
src/pkg/wasm_module.js:113
Function
resetDeltas
()
src/lib/stores/stats.ts:121
Method
skip_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
Function
toggleMenu
()
src/lib/stores/state.ts:63