String reads a string.
()
| 194 | |
| 195 | // String reads a string. |
| 196 | func (reader *Reader) String() string { |
| 197 | length := reader.VariableUint() |
| 198 | reader.offset += length |
| 199 | return string(reader.buf[reader.offset-length : reader.offset]) |
| 200 | } |
| 201 | |
| 202 | // Id reads an internal ID. |
| 203 | func (reader *Reader) Id() id.Id { |