2
0

MessageReader uses ReadCString and ReadString names

Make consistent with MessageWriter
This commit is contained in:
Jack Christensen
2013-07-20 08:40:37 -05:00
parent ce2d53c4fb
commit 0c3753e507
5 changed files with 27 additions and 27 deletions
+3 -3
View File
@@ -85,7 +85,7 @@ func (r *MessageReader) ReadOid() (oid Oid) {
}
// ReadString reads a null terminated string
func (r *MessageReader) ReadString() (s string) {
func (r *MessageReader) ReadCString() (s string) {
if r.Err != nil {
return
}
@@ -99,8 +99,8 @@ func (r *MessageReader) ReadString() (s string) {
return string(b[:len(b)-1])
}
// ReadByteString reads count bytes and return as string
func (r *MessageReader) ReadByteString(count int32) (s string) {
// ReadString reads count bytes and returns as string
func (r *MessageReader) ReadString(count int32) (s string) {
if r.Err != nil {
return
}