Branch: refs/heads/master
Home: https://github.com/conformal/btcwire
Commit: ff783faf530a841544821099485c67463ac6de21
https://github.com/conformal/btcwire/commit/ff783faf530a841544821099485c67463ac6de21
Author: Dave Collins <[email protected]>
Date: 2014-02-03 (Mon, 03 Feb 2014)
Changed paths:
M internal_test.go
M message.go
M message_test.go
M test_coverage.txt
Log Message:
-----------
Add Read/WriteMessageN to return number of bytes.
This commit adds two new funtions named ReadMessageN and WriteMessageN
which return an additional paramter for the number of bytes read or written,
respectively.
It also adds tests to ensure the number of bytes read and written are the
expected values both for successful reads/writes and unsuccessful ones.
Closes #6.