Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebAssembly prototype #451

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft

Conversation

UpliftMacaw
Copy link

@UpliftMacaw UpliftMacaw commented Oct 5, 2024

Overview

This is very much a work in progress!

Current "test":

import * as rbx_binary_wasm from "rbx_binary_wasm"

const DATA = "base64-encoded rbxm file :)"

function base64ToArrayBuffer(base64) {
  var binaryString = atob(base64);
  var bytes = new Uint8Array(binaryString.length);
  for (var i = 0; i < binaryString.length; i++) {
      bytes[i] = binaryString.charCodeAt(i);
  }
  return bytes;
}

console.log(rbx_binary_wasm.decode_file(base64ToArrayBuffer(DATA)))

Roadmap

  • Test coverage
  • Documentation
  • Typescript definitions for dom

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant