serialize-buffer-array

1.0.0 • Public • Published

Serialize Buffer Array

NPM Package

Use

npm install --save serialize-buffer-array

const SerializeBufferArray = require('serialize-buffer-array')

const arr = [
  Buffer.allocUnsafe(0),
  Buffer.allocUnsafe(1),
  Buffer.allocUnsafe(255),
  Buffer.allocUnsafe(256),
  Buffer.allocUnsafe(65535),
  Buffer.allocUnsafe(65536),
  Buffer.allocUnsafe(SerializeBufferArray.MAX_SIZE)
]

const serialized = SerializeBufferArray.serialize(arr)
const deserialized = SerializeBufferArray.deserialize(serialized)
// arr === deserialized

Package Sidebar

Install

npm i serialize-buffer-array

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.33 kB

Total Files

5

Last publish

Collaborators

  • kevinejohn