start-os icon indicating copy to clipboard operation
start-os copied to clipboard

[feat]: Embassy OS JS Effect: Encoding/ Decoding

Open Blu-J opened this issue 2 years ago • 0 comments

Prerequisites

  • [X] I have searched for existing issues that already suggest this feature, without success.

Describe the Feature Request

For the js, we need to encode and decode Base64, hex, string Also need to read in a binary

Way of producing ArrayBuffers and Wr

Describe the Use Case

Reading in binary files, writing binary files

Describe Preferred Solution

Add some effects for: base64 <-> Uint8Array base64 <-> hex base64 <-> string Uint8Array <-> Hex

Maybe read file into base64 Maybe do some ZeroCopyBuf https://github.com/denoland/deno/blob/main/core/examples/http_bench_json_ops.rs Uint8Array

Describe Alternatives

~~Re implement TextEncoder and a whole bunch of of ts libs~~ TextEncoder actually doesn't provide tools for converting to base64 or hex

Anything else?

No response

Blu-J avatar Jul 07 '22 21:07 Blu-J