public CodeSignatureBlob GetEntry(CodeSignatureEntryType entryType) { for (int index = 0; index < Entries.Count; index++) { if (Entries[index].Key == entryType) { return(Entries[index].Value); } } return(null); }
public CodeSignatureSuperBlob(byte[] buffer, int offset) { uint length = BigEndianConverter.ToUInt32(buffer, offset + 4); uint count = BigEndianConverter.ToUInt32(buffer, offset + 8); for (int index = 0; index < count; index++) { CodeSignatureEntryType entryType = (CodeSignatureEntryType)BigEndianConverter.ToUInt32(buffer, offset + 12 + index * 8); uint entryOffset = BigEndianConverter.ToUInt32(buffer, offset + 12 + index * 8 + 4); CodeSignatureBlob blob = CodeSignatureBlob.ReadBlob(buffer, offset + (int)entryOffset); Entries.Add(entryType, blob); } }