Skip to content

Instantly share code, notes, and snippets.

@heapwolf heapwolf/23.js
Created Aug 6, 2012

Embed
What would you like to do?
buffer/manipulate
var frosty = new Buffer(24);
var snowman = new Buffer("", "utf8");
frosty.write("Happy birthday! ", "utf8");
snowman.copy(frosty, 16);
frosty.toString("utf8", 0, 19);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.