var walk = require('y-walk'),
BinaryBuffer = require('binary-buffer'),
buff = new BinaryBuffer();
walk(function*(){
yield buff.write(new Buffer([1,2,3]));
});
walk(function*(){
var result = yield buff.read(new Buffer(3));
console.log(result); // <Buffer 01 02 03>
});
This repository has been archived by the owner on Jul 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
A stream-like binary buffer
License
manvalls/binary-buffer
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A stream-like binary buffer
Resources
License
Stars
Watchers
Forks
Releases
No releases published