OSDN Git Service

versoin1.1.9 (#594)
[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 }