@libit/bufferutil
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

@libit/bufferutil

A buffer utils

Installation

npm i @libit/bufferutil

API

concat(list: Buffer[], totalLength?: number): Buffer

Merges an array of buffers into a new buffer.

toBuffer(data: any, enc?: BufferEncoding): Buffer

Converts data to a Buffer.

toArrayBuffer(buf: Buffer): ArrayBuffer

Converts a buffer to an ArrayBuffer.

mask(source: Buffer, mask: Buffer, output: Buffer, offset: number, length: number)

Masks a buffer using the given mask.

unmask(buffer: Buffer, mask: Buffer)

Unmasks a buffer using the given mask.

Readme

Keywords

none

Package Sidebar

Install

npm i @libit/bufferutil

Weekly Downloads

3

Version

0.1.1

License

MIT

Unpacked Size

15.8 kB

Total Files

15

Last publish

Collaborators

  • towyuan