offset-buffer
Node.js Buffer wrapper that keeps track of your read and write offsets.
It also includes support for reading and writing 24-bit and 64-bit integers (via the int24, and ref libraries respectively).
Example
var OffsetBuffer = ob = 15 val; // write offsets are managed automatically so you can do this:ob; // ob.write_offset = 1ob
Install
npm install offset-buffer
Tests
npm test
License
MIT License