
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
queue-buffer
Advanced tools
A flex buffer which behaves as a dynamic queue with a complete but limited Buffer API.
npm install queue-buffer -S
then
QueueBuffer = require("queue-buffer");
buf = new QueueBuffer(10);
buf.write([1, 2, 3, 4, 5]);
buf.writeInt32LE(14);
buf.read(5);
QueueBuffer extends Flexbuffer, please see Flex-Buffer for more API info.
Auto release threshold(ms)
see FlexBuffer
param: arg { number | Buffer | Array | string }
The same arg as Buffer.
param: opts { Object={} }
options
option: autoRelease { boolean }
auto release useless space
option: autoReleaseThreshold { number }
auto release threshold(ms)
Release useless space which has been read.
Move current read offset.
param: size { number }
number of bytes to move, can be negative.
Move current read offset forward.
param: size { number }
number of bytes to skip
Move current read offset backward.
param: size { number }
number of bytes to rewind
Read bytes from the head of the buffer.
param: size { number }
number of bytes to read
return: { Buffer }
data
see FlexBuffer
param: value { number | string | Array | Buffer }
The value to write
param: encoding { string="utf8" }
string encoding
length of the data
All the native Buffer API is wrapped. However, read* methods can only read data from head, with no offset argument.
npm test
npm run benchmark
Environment: io.js v2.0.0, OS X 10.10.2, Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz
Read
wrapped native API
MIT@Dracupid
FAQs
A flex buffer which behaves as a dynamic queue with a complete but limited Buffer API.
The npm package queue-buffer receives a total of 16 weekly downloads. As such, queue-buffer popularity was classified as not popular.
We found that queue-buffer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.