Skip to content
This repository was archived by the owner on Dec 2, 2019. It is now read-only.
This repository was archived by the owner on Dec 2, 2019. It is now read-only.

Replace Buffer with UInt8Array functions on browsers #7

@davalapar

Description

@davalapar

Usage of Buffer isn't really necessary for browsers.

We just want simpler functions that let us encode and decode data to/from UInt8Array instances.

Looking at https://github.com/feross/buffer/blob/master/index.js the implemetation actually has internal checks and assertions which could be skipped, which could speed up our encoding and decoding process in the browser.

If this ever succeeds, we can even use these UInt8Array functions on the node implementation for speed, since UInt8Arrays can be converted to Buffer instances anyways.

Notes:

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions