ReadString reads the next N bytes as a string.
(n uint32)
| 114 | |
| 115 | // ReadString reads the next N bytes as a string. |
| 116 | func (rw *WireRW) ReadString(n uint32) string { |
| 117 | return string(rw.ReadBytes(n)) |
| 118 | } |
| 119 | |
| 120 | // ReadBytes reads the next N bytes. |
| 121 | func (rw *WireRW) ReadBytes(n uint32) []byte { |