| Method | What it does |
| DotnetAssembly.open(bytes, name, siblings) | { kind, info, assemblies }: kind is "pe", "xalz" or "store"; each assembly entry has name, size, compressedSize and load(), which returns the decompressed PE bytes. siblings ([{ name, buffer }]) lets a v1 assemblies.blob find its assemblies.manifest. |
DotnetAssembly.parse(bytes, fileName) new DotnetAssembly(bytes, fileName) | The metadata of one assembly (throws for a native DLL). |
| assembly.header, fileName, streams, tables, rows, sections, bytes, view, sorted | The CLI header facts (runtime, metadata version, flags, entry point, machine…), the metadata streams and table layouts, the PE sections and the bytes. |
| assembly.row(table, id), count(table) | A row as an object with named columns (coded indexes as tokens, strings as text); the number of rows of a table. |
| assembly.str(index), blob(offset), guid(index), userString(offset), allUserStrings() | The heaps. |
| assembly.types(), typeDef(id), nestedTypes(id), enclosingOf(id) | The type definitions, with their field and method ranges and enclosing type. |
| assembly.method(id), params(id), field(id), methodOwner(id), fieldOwner(id) | Members and their owners. |
| assembly.properties(id), events(id), interfaces(id), genericParams(token), customAttrs(token), constant(token), hasConstant(token), implMap(token), fieldRva(id), classLayout(id), semanticsOf(id), semanticsFor(token), methodImpls(id) | The lookups of the sorted tables. |
| assembly.asm(), asmRefs(), module(), moduleRefs(), resources(), resourceData(resource) | The assembly's identity, its references, its module and its manifest resources. |
| assembly.body(id), localTypes(signatureToken) | A method body with its exception clauses; the types of its locals. |
| assembly.typeDefFullName(id), typeRefFullName(id), typeRefScope(id), rvaToOffset(rva), readCompressed(offset) | Full names (Namespace.Outer/Inner), the assembly a TypeRef points to, file offsets and compressed integers. |
| DotnetAssembly.readAttribute(assembly, ctorSignature, blob, resolveEnum) | The arguments of a custom attribute: { fixed: [{ t, v }], named: [{ field, name, t, v }] }. |
| DotnetAssembly.readConstant(elementType, blob) | A constant's value: { t, v }. |
| DotnetAssembly.typeName(assembly, type) | The full name of a named signature type. |
| DotnetAssembly.lz4(source, length), unXALZ(bytes), isPE(bytes) | LZ4 block decompression, XALZ unwrapping, the MZ test. |
| DotnetAssembly.SCHEMA, TABLE_NAMES, CODED_INDEXES, ELEMENT_TYPES | The table columns and names, the coded index layouts, the element type names. |
| DotnetSignature.method(assembly, blob), field, prop, locals, methodSpec, spec, type | Signature blobs. A type is an object such as { k: "p", n: "int" }, { k: "t", tok }, { k: "gi", base, args } or { k: "arr", el, rank }. |
| DotnetSignature.reader(bytes), kind(blob), tdor(value) | A reader of compressed integers, a blob's first byte, a TypeDefOrRef coded index as a token. |