* Reads an associative array of strings as keys and string lists as values * @returns {Object}
()
| 219 | * @returns {Object} |
| 220 | */ |
| 221 | readStringMultiMap() { |
| 222 | //A [short] n, followed by n pair <k><v> where <k> is a |
| 223 | //[string] and <v> is a [string[]]. |
| 224 | const length = this.readShort(); |
| 225 | if (length < 0) { |
| 226 | return null; |
| 227 | } |
| 228 | const map = {}; |
| 229 | for (let i = 0; i < length; i++) { |
| 230 | map[this.readString()] = this.readStringList(); |
| 231 | } |
| 232 | return map; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * Reads a data type definition |
no test coverage detected