Versions in this module Expand all Collapse all v0 v0.1.0 Jun 25, 2022 Changes in this version + type Assembly struct + Culture string + Flags AssemblyFlags + HashAlgId AssemblyHashAlgorithm + Name string + PublicKey Blob + Version uint64 + func (f *Assembly) FromRow(r Row) error + type AssemblyFlags uint32 + func (f AssemblyFlags) DisableJITcompileOptimizer() bool + func (f AssemblyFlags) EnableJITcompileTracking() bool + func (f AssemblyFlags) PublicKey() bool + func (f AssemblyFlags) Retargetable() bool + type AssemblyHashAlgorithm uint32 + func (f AssemblyHashAlgorithm) MD5() bool + func (f AssemblyHashAlgorithm) None() bool + func (f AssemblyHashAlgorithm) SHA1() bool + type AssemblyOS struct + OSMajorVersion uint32 + OSMinorVersion uint32 + OSPlatformID uint32 + func (f *AssemblyOS) FromRow(r Row) error + type AssemblyProcessor struct + Processor uint32 + func (f *AssemblyProcessor) FromRow(r Row) error + type AssemblyRef struct + Culture string + Flags AssemblyFlags + HashValue Blob + Name string + PublicKeyOrToken Blob + Version uint64 + func (f *AssemblyRef) FromRow(r Row) error + type AssemblyRefOS struct + AssemblyRef Index + OSMajorVersion uint32 + OSMinorVersion uint32 + OSPlatformID uint32 + func (f *AssemblyRefOS) FromRow(r Row) error + func (f *AssemblyRefOS) ResolveAssemblyRef(c *Context) (AssemblyRef, error) + type AssemblyRefProcessor struct + AssemblyRef Index + Processor uint32 + func (f *AssemblyRefProcessor) FromRow(r Row) error + func (f *AssemblyRefProcessor) ResolveAssemblyRef(c *Context) (AssemblyRef, error) + type Blob = []byte + type ClassLayout struct + ClassSize uint32 + PackingSize uint16 + Parent Index + func (f *ClassLayout) FromRow(r Row) error + func (f *ClassLayout) ResolveParent(c *Context) (TypeDef, error) + type Constant struct + Parent HasConstant + Type ElementTypeKind + Value Blob + func (f *Constant) FromRow(r Row) error + type Context struct + Metadata *md.Metadata + func FromPE(f *pe.File) (*Context, error) + func (t *Context) Blob(tt md.TableType, row, column uint32) (Blob, error) + func (t *Context) List(tt md.TableType, row, column uint32, target md.TableType) (List, error) + func (t *Context) ResolveTypeDefOrRefName(ref TypeDefOrRef) (namespace, name string, err error) + func (t *Context) RowCount(tt md.TableType) uint32 + func (t *Context) Signature(tt md.TableType, row, column uint32) (Signature, error) + func (t *Context) String(tt md.TableType, row, column uint32) (string, error) + func (t *Context) Table(tt md.TableType) Table + func (t *Context) Uint32(tt md.TableType, row, column uint32) (uint32, error) + func (t *Context) Uint64(tt md.TableType, row, column uint32) (uint64, error) + type CustomAttribute struct + Parent HasCustomAttribute + Type CustomAttributeType + Value Blob + func (f *CustomAttribute) FromRow(r Row) error + type CustomAttributeType uint32 + func CreateCustomAttributeType(tt md.TableType, idx uint32) CustomAttributeType + func (t *CustomAttributeType) Set(tt md.TableType, idx uint32) + func (t CustomAttributeType) Row(c *Context) (Row, bool) + func (t CustomAttributeType) String() string + func (t CustomAttributeType) Table() (md.TableType, bool) + func (t CustomAttributeType) TableIndex() uint32 + func (t CustomAttributeType) Tag() uint32 + type DeclSecurity struct + Action uint16 + Parent HasDeclSecurity + PermissionSet Blob + func (f *DeclSecurity) FromRow(r Row) error + type Element struct + ByRef bool + IsArray bool + IsConst bool + Pointers int + Type ElementType + type ElementType struct + Array ElementTypeArray + Field Index + GenericMethodVar ElementTypeGenericMethodVar + GenericParam Index + GenericTypeVar ElementTypeGenericTypeVar + Kind ElementTypeKind + MethodDef Index + SZArray ElementTypeSZArray + TypeDef ElementTypeTypeDef + func (e *ElementType) FromCode(code uint32) bool + type ElementTypeArray struct + Elem *Element + Size uint32 + type ElementTypeGenericMethodVar struct + Index uint32 + type ElementTypeGenericTypeVar struct + Index uint32 + type ElementTypeKind uint16 + const ELEMENT_TYPE_ARRAY + const ELEMENT_TYPE_BOOLEAN + const ELEMENT_TYPE_BYREF + const ELEMENT_TYPE_CHAR + const ELEMENT_TYPE_CLASS + const ELEMENT_TYPE_CMOD_OPT + const ELEMENT_TYPE_CMOD_REQD + const ELEMENT_TYPE_END + const ELEMENT_TYPE_FNPTR + const ELEMENT_TYPE_GENERICINST + const ELEMENT_TYPE_I + const ELEMENT_TYPE_I1 + const ELEMENT_TYPE_I2 + const ELEMENT_TYPE_I4 + const ELEMENT_TYPE_I8 + const ELEMENT_TYPE_INTERNAL + const ELEMENT_TYPE_MODIFIER + const ELEMENT_TYPE_MVAR + const ELEMENT_TYPE_OBJECT + const ELEMENT_TYPE_PINNED + const ELEMENT_TYPE_PTR + const ELEMENT_TYPE_R4 + const ELEMENT_TYPE_R8 + const ELEMENT_TYPE_SENTINEL + const ELEMENT_TYPE_STRING + const ELEMENT_TYPE_SZARRAY + const ELEMENT_TYPE_TYPEDBYREF + const ELEMENT_TYPE_U + const ELEMENT_TYPE_U1 + const ELEMENT_TYPE_U2 + const ELEMENT_TYPE_U4 + const ELEMENT_TYPE_U8 + const ELEMENT_TYPE_VALUETYPE + const ELEMENT_TYPE_VAR + const ELEMENT_TYPE_VOID + func (i ElementTypeKind) String() string + type ElementTypeSZArray struct + Elem *Element + type ElementTypeTypeDef struct + Generics []ElementType + Index TypeDefOrRef + type Event struct + EventFlags EventAttributes + EventType TypeDefOrRef + Name string + func (f *Event) FromRow(r Row) error + type EventAttributes uint16 + func (f EventAttributes) RTSpecialName() bool + func (f EventAttributes) SpecialName() bool + type EventMap struct + EventList List + Parent Index + func (f *EventMap) FromRow(r Row) error + func (f *EventMap) ResolveEventList(c *Context) ([]Event, error) + func (f *EventMap) ResolveParent(c *Context) (TypeDef, error) + type ExportedType struct + Flags TypeAttributes + Implementation Implementation + TypeDefId uint32 + TypeName string + TypeNamespace string + func (f *ExportedType) FromRow(r Row) error + type Field struct + Flags FieldAttributes + Name string + Signature Signature + func (f *Field) FromRow(r Row) error + type FieldAttributes uint16 + func (f FieldAttributes) Assembly() bool + func (f FieldAttributes) CompilerControlled() bool + func (f FieldAttributes) FamANDAssem() bool + func (f FieldAttributes) FamORAssem() bool + func (f FieldAttributes) Family() bool + func (f FieldAttributes) HasDefault() bool + func (f FieldAttributes) HasFieldMarshal() bool + func (f FieldAttributes) HasFieldRVA() bool + func (f FieldAttributes) InitOnly() bool + func (f FieldAttributes) Literal() bool + func (f FieldAttributes) NotSerialized() bool + func (f FieldAttributes) PInvokeImpl() bool + func (f FieldAttributes) Private() bool + func (f FieldAttributes) Public() bool + func (f FieldAttributes) RTSpecialName() bool + func (f FieldAttributes) SpecialName() bool + func (f FieldAttributes) Static() bool + type FieldLayout struct + Field Index + Offset uint32 + func (f *FieldLayout) FromRow(r Row) error + func (f *FieldLayout) ResolveField(c *Context) (Field, error) + type FieldMarshal struct + NativeType Blob + Parent Index + func (f *FieldMarshal) FromRow(r Row) error + type FieldRVA struct + Field Index + RVA uint32 + func (f *FieldRVA) FromRow(r Row) error + func (f *FieldRVA) ResolveField(c *Context) (Field, error) + type FieldSignature struct + Field Element + type File struct + Flags FileAttributes + HashValue Blob + Name string + func (f *File) FromRow(r Row) error + type FileAttributes uint32 + func (f FileAttributes) ContainsMetaData() bool + func (f FileAttributes) ContainsNoMetaData() bool + type GUID = Index + type GenericParam struct + Flags GenericParamAttributes + Name string + Number uint16 + Owner TypeOrMethodDef + func (f *GenericParam) FromRow(r Row) error + type GenericParamAttributes uint16 + func (f GenericParamAttributes) Contravariant() bool + func (f GenericParamAttributes) Covariant() bool + func (f GenericParamAttributes) DefaultConstructorConstraint() bool + func (f GenericParamAttributes) None() bool + func (f GenericParamAttributes) NotNullableValueTypeConstraint() bool + func (f GenericParamAttributes) ReferenceTypeConstraint() bool + type GenericParamConstraint struct + Constraint TypeDefOrRef + Owner Index + func (f *GenericParamConstraint) FromRow(r Row) error + func (f *GenericParamConstraint) ResolveOwner(c *Context) (GenericParam, error) + type HasConstant uint32 + func CreateHasConstant(tt md.TableType, idx uint32) HasConstant + func (t *HasConstant) Set(tt md.TableType, idx uint32) + func (t HasConstant) Row(c *Context) (Row, bool) + func (t HasConstant) String() string + func (t HasConstant) Table() (md.TableType, bool) + func (t HasConstant) TableIndex() uint32 + func (t HasConstant) Tag() uint32 + type HasCustomAttribute uint32 + func CreateHasCustomAttribute(tt md.TableType, idx uint32) HasCustomAttribute + func (t *HasCustomAttribute) Set(tt md.TableType, idx uint32) + func (t HasCustomAttribute) Row(c *Context) (Row, bool) + func (t HasCustomAttribute) String() string + func (t HasCustomAttribute) Table() (md.TableType, bool) + func (t HasCustomAttribute) TableIndex() uint32 + func (t HasCustomAttribute) Tag() uint32 + type HasDeclSecurity uint32 + func CreateHasDeclSecurity(tt md.TableType, idx uint32) HasDeclSecurity + func (t *HasDeclSecurity) Set(tt md.TableType, idx uint32) + func (t HasDeclSecurity) Row(c *Context) (Row, bool) + func (t HasDeclSecurity) String() string + func (t HasDeclSecurity) Table() (md.TableType, bool) + func (t HasDeclSecurity) TableIndex() uint32 + func (t HasDeclSecurity) Tag() uint32 + type HasFieldMarshall uint32 + func CreateHasFieldMarshall(tt md.TableType, idx uint32) HasFieldMarshall + func (t *HasFieldMarshall) Set(tt md.TableType, idx uint32) + func (t HasFieldMarshall) Row(c *Context) (Row, bool) + func (t HasFieldMarshall) String() string + func (t HasFieldMarshall) Table() (md.TableType, bool) + func (t HasFieldMarshall) TableIndex() uint32 + func (t HasFieldMarshall) Tag() uint32 + type HasSemantics uint32 + func CreateHasSemantics(tt md.TableType, idx uint32) HasSemantics + func (t *HasSemantics) Set(tt md.TableType, idx uint32) + func (t HasSemantics) Row(c *Context) (Row, bool) + func (t HasSemantics) String() string + func (t HasSemantics) Table() (md.TableType, bool) + func (t HasSemantics) TableIndex() uint32 + func (t HasSemantics) Tag() uint32 + type ImplMap struct + ImportName string + ImportScope Index + MappingFlags PInvokeAttributes + MemberForwarded MemberForwarded + func (f *ImplMap) FromRow(r Row) error + func (f *ImplMap) ResolveImportScope(c *Context) (ModuleRef, error) + type Implementation uint32 + func CreateImplementation(tt md.TableType, idx uint32) Implementation + func (t *Implementation) Set(tt md.TableType, idx uint32) + func (t Implementation) Row(c *Context) (Row, bool) + func (t Implementation) String() string + func (t Implementation) Table() (md.TableType, bool) + func (t Implementation) TableIndex() uint32 + func (t Implementation) Tag() uint32 + type Index = uint32 + type InterfaceImpl struct + Class Index + Interface TypeDefOrRef + func (f *InterfaceImpl) FromRow(r Row) error + func (f *InterfaceImpl) ResolveClass(c *Context) (TypeDef, error) + type List [2]Index + func (l List) Empty() bool + func (l List) End() Index + func (l List) Size() int + func (l List) Start() Index + type ManifestResource struct + Flags ManifestResourceAttributes + Implementation Implementation + Name string + Offset uint32 + func (f *ManifestResource) FromRow(r Row) error + type ManifestResourceAttributes uint32 + func (f ManifestResourceAttributes) Private() bool + func (f ManifestResourceAttributes) Public() bool + type MemberForwarded uint32 + func CreateMemberForwarded(tt md.TableType, idx uint32) MemberForwarded + func (t *MemberForwarded) Set(tt md.TableType, idx uint32) + func (t MemberForwarded) Row(c *Context) (Row, bool) + func (t MemberForwarded) String() string + func (t MemberForwarded) Table() (md.TableType, bool) + func (t MemberForwarded) TableIndex() uint32 + func (t MemberForwarded) Tag() uint32 + type MemberRef struct + Class MemberRefParent + Name string + Signature Signature + func (f *MemberRef) FromRow(r Row) error + type MemberRefParent uint32 + func CreateMemberRefParent(tt md.TableType, idx uint32) MemberRefParent + func (t *MemberRefParent) Set(tt md.TableType, idx uint32) + func (t MemberRefParent) Row(c *Context) (Row, bool) + func (t MemberRefParent) String() string + func (t MemberRefParent) Table() (md.TableType, bool) + func (t MemberRefParent) TableIndex() uint32 + func (t MemberRefParent) Tag() uint32 + type MethodAttributes uint16 + func (f MethodAttributes) Abstract() bool + func (f MethodAttributes) Assembly() bool + func (f MethodAttributes) CompilerControlled() bool + func (f MethodAttributes) FamANDAssem() bool + func (f MethodAttributes) FamORAssem() bool + func (f MethodAttributes) Family() bool + func (f MethodAttributes) Final() bool + func (f MethodAttributes) HasSecurity() bool + func (f MethodAttributes) HideBySig() bool + func (f MethodAttributes) NewSlot() bool + func (f MethodAttributes) PInvokeImpl() bool + func (f MethodAttributes) Private() bool + func (f MethodAttributes) Public() bool + func (f MethodAttributes) RTSpecialName() bool + func (f MethodAttributes) RequireSecObject() bool + func (f MethodAttributes) ReuseSlot() bool + func (f MethodAttributes) SpecialName() bool + func (f MethodAttributes) Static() bool + func (f MethodAttributes) Strict() bool + func (f MethodAttributes) UnmanagedExport() bool + func (f MethodAttributes) Virtual() bool + type MethodDef struct + Flags MethodAttributes + ImplFlags MethodImplAttributes + Name string + ParamList List + RVA uint32 + Signature Signature + func (f *MethodDef) FromRow(r Row) error + func (f *MethodDef) ResolveParamList(c *Context) ([]Param, error) + type MethodDefOrRef uint32 + func CreateMethodDefOrRef(tt md.TableType, idx uint32) MethodDefOrRef + func (t *MethodDefOrRef) Set(tt md.TableType, idx uint32) + func (t MethodDefOrRef) Row(c *Context) (Row, bool) + func (t MethodDefOrRef) String() string + func (t MethodDefOrRef) Table() (md.TableType, bool) + func (t MethodDefOrRef) TableIndex() uint32 + func (t MethodDefOrRef) Tag() uint32 + type MethodImpl struct + Class Index + MethodBody MethodDefOrRef + MethodDeclaration MethodDefOrRef + func (f *MethodImpl) FromRow(r Row) error + func (f *MethodImpl) ResolveClass(c *Context) (TypeDef, error) + type MethodImplAttributes uint16 + func (f MethodImplAttributes) ForwardRef() bool + func (f MethodImplAttributes) IL() bool + func (f MethodImplAttributes) InternalCall() bool + func (f MethodImplAttributes) Managed() bool + func (f MethodImplAttributes) MaxMethodImplVal() bool + func (f MethodImplAttributes) Native() bool + func (f MethodImplAttributes) NoInlining() bool + func (f MethodImplAttributes) NoOptimization() bool + func (f MethodImplAttributes) OPTIL() bool + func (f MethodImplAttributes) PreserveSig() bool + func (f MethodImplAttributes) Runtime() bool + func (f MethodImplAttributes) Synchronized() bool + func (f MethodImplAttributes) Unmanaged() bool + type MethodSemantics struct + Association HasSemantics + Method Index + Semantics MethodSemanticsAttributes + func (f *MethodSemantics) FromRow(r Row) error + func (f *MethodSemantics) ResolveMethod(c *Context) (MethodDef, error) + type MethodSemanticsAttributes uint16 + func (f MethodSemanticsAttributes) AddOn() bool + func (f MethodSemanticsAttributes) Fire() bool + func (f MethodSemanticsAttributes) Getter() bool + func (f MethodSemanticsAttributes) Other() bool + func (f MethodSemanticsAttributes) RemoveOn() bool + func (f MethodSemanticsAttributes) Setter() bool + type MethodSignature struct + Flags uint32 + GenericArgCount uint32 + Params []Element + Return Element + type MethodSpec struct + Instantiation Blob + Method MethodDefOrRef + func (f *MethodSpec) FromRow(r Row) error + type Module struct + EncBaseId GUID + EncId GUID + Generation uint16 + Mvid GUID + Name string + func (f *Module) FromRow(r Row) error + type ModuleRef struct + Name string + func (f *ModuleRef) FromRow(r Row) error + type NestedClass struct + EnclosingClass Index + NestedClass Index + func (f *NestedClass) FromRow(r Row) error + func (f *NestedClass) ResolveEnclosingClass(c *Context) (TypeDef, error) + func (f *NestedClass) ResolveNestedClass(c *Context) (TypeDef, error) + type PInvokeAttributes uint16 + func (f PInvokeAttributes) CallConvCdecl() bool + func (f PInvokeAttributes) CallConvFastcall() bool + func (f PInvokeAttributes) CallConvPlatformapi() bool + func (f PInvokeAttributes) CallConvStdcall() bool + func (f PInvokeAttributes) CallConvThiscall() bool + func (f PInvokeAttributes) CharSetAnsi() bool + func (f PInvokeAttributes) CharSetAuto() bool + func (f PInvokeAttributes) CharSetNotSpec() bool + func (f PInvokeAttributes) CharSetUnicode() bool + func (f PInvokeAttributes) NoMangle() bool + func (f PInvokeAttributes) SupportsLastError() bool + type Param struct + Flags ParamAttributes + Name string + Sequence uint16 + func (f *Param) FromRow(r Row) error + type ParamAttributes uint16 + func (f ParamAttributes) HasDefault() bool + func (f ParamAttributes) HasFieldMarshal() bool + func (f ParamAttributes) In() bool + func (f ParamAttributes) Optional() bool + func (f ParamAttributes) Out() bool + func (f ParamAttributes) Unused() bool + type Property struct + Flags PropertyAttributes + Name string + Type Signature + func (f *Property) FromRow(r Row) error + type PropertyAttributes uint16 + func (f PropertyAttributes) HasDefault() bool + func (f PropertyAttributes) RTSpecialName() bool + func (f PropertyAttributes) SpecialName() bool + func (f PropertyAttributes) Unused() bool + type PropertyMap struct + Parent Index + PropertyList List + func (f *PropertyMap) FromRow(r Row) error + func (f *PropertyMap) ResolveParent(c *Context) (TypeDef, error) + func (f *PropertyMap) ResolvePropertyList(c *Context) ([]Property, error) + type ResolutionScope uint32 + func CreateResolutionScope(tt md.TableType, idx uint32) ResolutionScope + func (t *ResolutionScope) Set(tt md.TableType, idx uint32) + func (t ResolutionScope) Row(c *Context) (Row, bool) + func (t ResolutionScope) String() string + func (t ResolutionScope) Table() (md.TableType, bool) + func (t ResolutionScope) TableIndex() uint32 + func (t ResolutionScope) Tag() uint32 + type Row struct + Row uint32 + Table Table + func (t *Row) Blob(column uint32) (Blob, error) + func (t *Row) List(column uint32, target md.TableType) (List, error) + func (t *Row) Signature(column uint32) (Signature, error) + func (t *Row) String(column uint32) (string, error) + func (t *Row) Uint32(column uint32) (uint32, error) + func (t *Row) Uint64(column uint32) (uint64, error) + type Signature Blob + func (s Signature) Reader() *SignatureReader + type SignatureReader struct + func (s *SignatureReader) Field(file *Context) (FieldSignature, error) + func (s *SignatureReader) Method(file *Context) (MethodSignature, error) + func (s *SignatureReader) NextElement(c *Context) (e Element, _ error) + func (s *SignatureReader) NextIs(expect uint32) bool + func (s *SignatureReader) Peek() (value uint32, size int, ok bool) + func (s *SignatureReader) Read() (value uint32, ok bool) + type Table struct + Type md.TableType + func (t Table) Columns() md.Columns + func (t Table) Row(row uint32) Row + func (t Table) RowCount() uint32 + type TypeAttributes uint32 + func (f TypeAttributes) Abstract() bool + func (f TypeAttributes) AnsiClass() bool + func (f TypeAttributes) AutoClass() bool + func (f TypeAttributes) AutoLayout() bool + func (f TypeAttributes) BeforeFieldInit() bool + func (f TypeAttributes) Class() bool + func (f TypeAttributes) CustomFormatClass() bool + func (f TypeAttributes) ExplicitLayout() bool + func (f TypeAttributes) HasSecurity() bool + func (f TypeAttributes) Import() bool + func (f TypeAttributes) Interface() bool + func (f TypeAttributes) IsTypeForwarder() bool + func (f TypeAttributes) NestedAssembly() bool + func (f TypeAttributes) NestedFamANDAssem() bool + func (f TypeAttributes) NestedFamORAssem() bool + func (f TypeAttributes) NestedFamily() bool + func (f TypeAttributes) NestedPrivate() bool + func (f TypeAttributes) NestedPublic() bool + func (f TypeAttributes) NotPublic() bool + func (f TypeAttributes) Public() bool + func (f TypeAttributes) RTSpecialName() bool + func (f TypeAttributes) Sealed() bool + func (f TypeAttributes) SequentialLayout() bool + func (f TypeAttributes) Serializable() bool + func (f TypeAttributes) SpecialName() bool + func (f TypeAttributes) UnicodeClass() bool + type TypeDef struct + Extends TypeDefOrRef + FieldList List + Flags TypeAttributes + MethodList List + TypeName string + TypeNamespace string + func (f *TypeDef) FromRow(r Row) error + func (f *TypeDef) ResolveFieldList(c *Context) ([]Field, error) + func (f *TypeDef) ResolveMethodList(c *Context) ([]MethodDef, error) + type TypeDefOrRef uint32 + func CreateTypeDefOrRef(tt md.TableType, idx uint32) TypeDefOrRef + func (t *TypeDefOrRef) Set(tt md.TableType, idx uint32) + func (t TypeDefOrRef) Row(c *Context) (Row, bool) + func (t TypeDefOrRef) String() string + func (t TypeDefOrRef) Table() (md.TableType, bool) + func (t TypeDefOrRef) TableIndex() uint32 + func (t TypeDefOrRef) Tag() uint32 + type TypeOrMethodDef uint32 + func CreateTypeOrMethodDef(tt md.TableType, idx uint32) TypeOrMethodDef + func (t *TypeOrMethodDef) Set(tt md.TableType, idx uint32) + func (t TypeOrMethodDef) Row(c *Context) (Row, bool) + func (t TypeOrMethodDef) String() string + func (t TypeOrMethodDef) Table() (md.TableType, bool) + func (t TypeOrMethodDef) TableIndex() uint32 + func (t TypeOrMethodDef) Tag() uint32 + type TypeRef struct + ResolutionScope ResolutionScope + TypeName string + TypeNamespace string + func (f *TypeRef) FromRow(r Row) error + type TypeSpec struct + Signature Signature + func (f *TypeSpec) FromRow(r Row) error v0.1.0-pre Jun 11, 2022