| Method / property | What it does |
| ResourceTable.parse(input) | An ArrayBuffer or Uint8Array → a ResourceTable. Throws when the file is not a resource table; damaged chunks are listed in table.errors. |
| table.packages, valuePool, valueUtf8, errors, idToName | The packages, the global string pool and its encoding, what could not be read, and a Map from each resource id to "type/name". |
| package | { id, idByte, name, typeNames, keyNames, types }; types is a Map from type id to { typeId, typeName, entryCount, specFlags, entries }, and entries a Map from index to an entry. |
| entry | { index, key, keyName, id, idHex, configs, defaultValue }: one value per configuration; defaultValue is the (default) one, or the first. |
| value | { label, kind, text, reference }: label is the configuration ("(default)", "fr", "night", "sw600dp-land"…), kind is "str", "num", "color", "ref" or "attr", and reference the id a reference points to. A bag is { label, complex: true, parent, items: [{ name, value }] }. |
| table.lookup(id) | { package, type, entry, name } for a resource id, or null. |
| table.resourceName(id) | "type/name", or null. |
| table.bagItemName(id) | The name of a bag item's key: a plural quantity ("other"), an array index ("[2]"), an attr field, or a resource name. |
| ResourceTable.formatValue(type, data, valuePool) | A Res_value as { kind, text, reference }. |