StringMap reads a map of strings, keyed by strings.
()
| 351 | |
| 352 | // StringMap reads a map of strings, keyed by strings. |
| 353 | func (reader *Reader) StringMap() map[string]string { |
| 354 | count := reader.VariableUint() |
| 355 | vals := make(map[string]string, count) |
| 356 | for i := uint64(0); i < count; i++ { |
| 357 | key := reader.String() |
| 358 | vals[key] = reader.String() |
| 359 | } |
| 360 | return vals |
| 361 | } |
| 362 | |
| 363 | // IdSlice reads a slice of internal IDs. |
| 364 | func (reader *Reader) IdSlice() []id.Id { |
no test coverage detected