MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / encode_target_id

Function encode_target_id

packages/server/src/webkit.rs:1180–1182  ·  view source on GitHub ↗
(app_id: &str, page_id: u64)

Source from the content-addressed store, hash-verified

1178}
1179
1180fn encode_target_id(app_id: &str, page_id: u64) -> String {
1181 format!("{}-{page_id}", hex::encode(app_id.as_bytes()))
1182}
1183
1184fn decode_target_id(target_id: &str) -> Result<(String, u64), AppError> {
1185 let Some((encoded_app_id, page_id)) = target_id.rsplit_once('-') else {

Callers 2

webkit_targetFunction · 0.85

Calls

no outgoing calls

Tested by 1