staticrypt icon indicating copy to clipboard operation
staticrypt copied to clipboard

Use UInt8Array to represent binary data

Open jimhark opened this issue 5 months ago • 0 comments

Summary

Use Uint8Array to represent binary data internally, convert hex strings to Uint8Array input, and convert Uint8Arrays to hex strings on output.

Proposed Solution

Currently the preferred internal representation of binary data is hex string. Conversions to Uint8Array or ArrayBuffer are performed as needed for API calls. Instead Uint8Array should be used where possible and conversions to/from hex strings should be done on input/output.

Benefits

  • Enables supporting larger HTML files
  • Reduces RAM requirements
  • Improves processing speed

I am preparing a pull request.

jimhark avatar Jul 20 '25 20:07 jimhark