Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why is transform and restore in a test and not in core lib? #55

Open
nickdesaulniers opened this issue Feb 25, 2015 · 0 comments
Open
Labels

Comments

@nickdesaulniers
Copy link
Owner

nano.Socket.prototype.transform = function (buf) {
if (!Buffer.isBuffer(buf)) buf = new Buffer(buf);
return Buffer.concat([new Buffer([0x00]), buf]);
}
nano.Socket.prototype.restore = function (buf) {
return Buffer.concat([new Buffer([0xFF]), buf]);
}

@tcr ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant