unslab
Unslab some slab'ed buffers
Last updated a month ago by GitHub Actions .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install unslab 
SYNC missed versions from official npm registry.

unslab

Unslab some slab'ed buffers

npm install unslab

Usage

const unslab = require('unslab')

// the buf returned unpools the buffer passed from the memory slab
const buf = unslab(Buffer.from('hello world'))

// can do multiple at the same time if you use them together. only does a single alloc in this case
const [a, b] = unslab([Buffer.from('hello'), Buffer.from('world')])

License

Apache-2.0

Current Tags

  • 1.3.1                                ...           latest (a month ago)

6 Versions

  • 1.3.1                                ...           a month ago
  • 1.3.0                                ...           2 years ago
  • 1.2.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Total 13
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 1
Last Month 0
Dependencies (1)
Dev Dependencies (4)

© 2010 - cnpmjs.org x YWFE | Home | YWFE