public Param(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Sequence = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); }
public MethodSemantics(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Semantics = (ushort)ReadSize(2); Method = ReadSize(IndexSizes[Index.MethodDef]); Association = ReadSize(IndexSizes[Index.HasSemantics]); }
public MemberRef(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Class = ReadSize(IndexSizes[Index.MemberRefParent]); Name = ReadSize(HeapSizes.String); Signature = ReadSize(HeapSizes.Blob); }
public TypeRef(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { ResolutionScope = ReadSize(IndexSizes[Index.ResolutionScope]); TypeName = ReadSize(HeapSizes.String); TypeNamespace = ReadSize(HeapSizes.String); }
public Event(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { EventFlags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); EventType = ReadSize(IndexSizes[Index.TypeDefOrRef]); }
public Field(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); Signature = ReadSize(HeapSizes.Blob); }
public AssemblyOS(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { OSPlatformID = ReadSize(4); OSMajorVersion = ReadSize(4); OSMinorVersion = ReadSize(4); }
public ClassLayout(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { PackingSize = (ushort)ReadSize(2); ClassSize = ReadSize(4); Parent = ReadSize(IndexSizes[Index.TypeDef]); }
public Param(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Sequence = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); }
public Property(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); Type = ReadSize(HeapSizes.Blob); }
public File(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Flags = ReadSize(4); Name = ReadSize(HeapSizes.String); HashValue = ReadSize(HeapSizes.Blob); }
public MethodImpl(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Class = ReadSize(IndexSizes[Index.TypeDef]); MethodBody = ReadSize(IndexSizes[Index.MethodDefOrRef]); MethodDeclaration = ReadSize(IndexSizes[Index.MethodDefOrRef]); }
public DeclSecurity(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Action = (ushort)ReadSize(2); Parent = ReadSize(IndexSizes[Index.HasDeclSecurity]); PermissionSet = ReadSize(HeapSizes.Blob); }
public MethodImpl(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Class = ReadSize(IndexSizes[Index.TypeDef]); MethodBody = ReadSize(IndexSizes[Index.MethodDefOrRef]); MethodDeclaration = ReadSize(IndexSizes[Index.MethodDefOrRef]); }
public AbstractTable(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset) { HeapSizes = heapSizes; IndexSizes = indexSizes; CurrentOffset = Offset; }
public ClassLayout(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { PackingSize = (ushort)ReadSize(2); ClassSize = ReadSize(4); Parent = ReadSize(IndexSizes[Index.TypeDef]); }
public Property(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); Type = ReadSize(HeapSizes.Blob); }
public MemberRef(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Class = ReadSize(IndexSizes[Index.MemberRefParent]); Name = ReadSize(HeapSizes.String); Signature = ReadSize(HeapSizes.Blob); }
public Field(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Flags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); Signature = ReadSize(HeapSizes.Blob); }
public File(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Flags = ReadSize(4); Name = ReadSize(HeapSizes.String); HashValue = ReadSize(HeapSizes.Blob); }
public DeclSecurity(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Action = (ushort)ReadSize(2); Parent = ReadSize(IndexSizes[Index.HasDeclSecurity]); PermissionSet = ReadSize(HeapSizes.Blob); }
public CustomAttribute(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Parent = ReadSize(IndexSizes[Index.HasCustomAttribute]); Type = ReadSize(IndexSizes[Index.CustomAttributeType]); Value = ReadSize(HeapSizes.Blob); }
public Event(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { EventFlags = (ushort)ReadSize(2); Name = ReadSize(HeapSizes.String); EventType = ReadSize(IndexSizes[Index.TypeDefOrRef]); }
public AssemblyOS(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { OSPlatformID = ReadSize(4); OSMajorVersion = ReadSize(4); OSMinorVersion = ReadSize(4); }
public MethodSemantics(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Semantics = (ushort)ReadSize(2); Method = ReadSize(IndexSizes[Index.MethodDef]); Association = ReadSize(IndexSizes[Index.HasSemantics]); }
public TypeRef(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { ResolutionScope = ReadSize(IndexSizes[Index.ResolutionScope]); TypeName = ReadSize(HeapSizes.String); TypeNamespace = ReadSize(HeapSizes.String); }
public AbstractTable(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset) { HeapSizes = heapSizes; IndexSizes = indexSizes; CurrentOffset = Offset; }
public CustomAttribute(IRawFile peFile, long offset, HeapSizes heapSizes, IndexSize indexSizes) : base(peFile, offset, heapSizes, indexSizes) { Parent = ReadSize(IndexSizes[Index.HasCustomAttribute]); Type = ReadSize(IndexSizes[Index.CustomAttributeType]); Value = ReadSize(HeapSizes.Blob); }
public ImplMap(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { MappingFlags = (ushort)ReadSize(2); MemberForwarded = ReadSize(IndexSizes[Index.MemberForwarded]); ImportName = ReadSize(HeapSizes.String); ImportScope = ReadSize(IndexSizes[Index.ModuleRef]); }
public ManifestResource(byte[] buff, uint offset, HeapSizes heapSizes, IndexSize indexSizes) : base(buff, offset, heapSizes, indexSizes) { Offset = ReadSize(4); Flags = ReadSize(4); Name = ReadSize(HeapSizes.String); Implementation = ReadSize(IndexSizes[Index.Implementation]); }
/// <summary> /// Reads an index with the specified index size of the stream. /// </summary> /// <param name="reader">The reader to use for reading the data.</param> /// <param name="size">The size of the index.</param> /// <returns>The index.</returns> public static uint ReadIndex(this IBinaryStreamReader reader, IndexSize size) { switch (size) { case IndexSize.Short: return reader.ReadUInt16(); case IndexSize.Long: return reader.ReadUInt32(); default: throw new ArgumentOutOfRangeException("size"); } }
/// <summary> /// Writes an index with the specified size to the stream. /// </summary> /// <param name="writer">The writer to use.</param> /// <param name="indexSize">The size of the index.</param> /// <param name="value">The value to write.</param> public static void WriteIndex(this IBinaryStreamWriter writer, IndexSize indexSize, uint value) { if (indexSize == IndexSize.Short) writer.WriteUInt16((ushort)value); else writer.WriteUInt32(value); }