Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fabiospampinato/uint8-concat

Concatenate mutiple Uint8Arrays super efficiently.
https://github.com/fabiospampinato/uint8-concat

concat concatenate fast uint8

Last synced: 3 months ago
JSON representation

Concatenate mutiple Uint8Arrays super efficiently.

Awesome Lists containing this project

README

        

# Uint8 Concat

Concatenate mutiple Uint8Arrays super efficiently.

## Install

```sh
npm install --save uint8-concat
```

## Usage

```ts
import concat from 'uint8-concat';

const buffer1 = new Uint8Array ([ 1, 2, 3 ]);
const buffer2 = new Uint8Array ([ 4, 5, 6 ]);
const buffer3 = new Uint8Array ([ 7, 8, 9 ]);

concat ([ buffer1, buffer2, buffer3 ]); // => Uint8Array(9) [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
```

## License

MIT © Fabio Spampinato