@decentra/memory
v0.2.1
Published
Module to manage ArrayBuffers and Uint8Array in unified way for browser and for
Downloads
8
Maintainers
Readme
Package for very basic memory manipulation for browser and node
Supported operations via concepts of memory fragments:
- allocate of size
- concat for 2 fragments
- getting slice of fragment
- checking memory fragment for equality
- Encoding text to UTF8 fragments
- Decoding UTF8 memory fragments to text
- Encoding memory fragments to base64 text and back
- Encoding memory fragments to base64url text and back