mirror of
https://github.com/tendermint/tendermint.git
synced 2026-05-29 18:40:34 +00:00
(U)VarInt binary methods; Txs have sequence numbers
This commit is contained in:
@@ -15,6 +15,8 @@ func WriteBinary(w io.Writer, b Binary, n *int64, err *error) {
|
||||
*err = err_
|
||||
}
|
||||
|
||||
// Write all of bz to w
|
||||
// Increment n and set err accordingly.
|
||||
func WriteTo(w io.Writer, bz []byte, n *int64, err *error) {
|
||||
if *err != nil {
|
||||
return
|
||||
@@ -24,6 +26,8 @@ func WriteTo(w io.Writer, bz []byte, n *int64, err *error) {
|
||||
*err = err_
|
||||
}
|
||||
|
||||
// Read len(buf) from r
|
||||
// Increment n and set err accordingly.
|
||||
func ReadFull(r io.Reader, buf []byte, n *int64, err *error) {
|
||||
if *err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user