Skip to content

Instantly share code, notes, and snippets.

@smikes
Created January 17, 2014 16:59
Show Gist options
  • Save smikes/8477032 to your computer and use it in GitHub Desktop.
Save smikes/8477032 to your computer and use it in GitHub Desktop.
schematic of compressed/uncompressed data handler
function handler(err, buffer) {
if(isCompressed(buffer)) {
decompress(buffer, handleUncompressedBuffer);
} else {
handleUncompressedBuffer(buffer);
}
}
function handleUncompressedBuffer(buffer) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment