tjfontaine/node-buffercursor — pull request #2 by sorear (2012-12-05 07:18:57+00:00)
Title: Handle 0 lengths faithfully

The specific issue I'm running into here concerns BinaryPack and serializing zero-length strings. Without this patch, BinaryPack fails during deserialization because it calls `cursor.toString('utf8',0)` and buffercursor interprets this as a request for the entire rest of the buffer.

Does this seem like a reasonable change, or should it be addressed within BinaryPack?

-Stefan