You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I've found a more efficient way of encoding binary data as strings, with 0% overhead (this might have been brought up before):
Iterate over every byte of the binary data and append String.fromCharCode(byte) to the output string. The resulting string can be stored in localStorage, and when reversed (with .charCodeAt) returns the original binary data fully intact (from 0-255).
The text was updated successfully, but these errors were encountered:
I think I've found a more efficient way of encoding binary data as strings, with 0% overhead (this might have been brought up before):
Iterate over every byte of the binary data and append
String.fromCharCode(byte)
to the output string. The resulting string can be stored in localStorage, and when reversed (with.charCodeAt
) returns the original binary data fully intact (from 0-255).The text was updated successfully, but these errors were encountered: