OSDN Git Service

Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git] / vendor / github.com / tendermint / go-wire / string.go
1 package wire
2
3 import (
4         "io"
5 )
6
7 func WriteString(s string, w io.Writer, n *int, err *error) {
8         WriteByteSlice([]byte(s), w, n, err)
9 }
10
11 func ReadString(r io.Reader, lmt int, n *int, err *error) string {
12         return string(ReadByteSlice(r, lmt, n, err))
13 }