brunodecarvalho/efflux — pull request #6 by maoueh (2014-12-10 03:32:27+00:00)
Title: Fix DataPacket#encode writeBytes method

This is a PR based on [comment](https://github.com/brunodecarvalho/efflux/issues/5#issue-48323428) on issue #5 which I think is correct.

* The writesBytes method call should consider underlying channel buffer
array offset and length.
* Fixes #5, original code from @RyanHoldren.