示例#1
0
 public void Read(ReaderContext ctxt, BlobReader reader)
 {
     var actualHint = reader.ReadUInt16();
     if (actualHint != hint)
         throw new PEException("invalid HintNameTable.Hint");
     Name = reader.ReadAsciiZeroTerminatedString(1);
     if (!Name.Equals(ExeHintName, StringComparison.Ordinal) &&
         !Name.Equals(DllHintName, StringComparison.Ordinal))
         throw new PEException("invalid HintNameTable.Name");
 }
示例#2
0
 public void Read(ReaderContext ctxt, BlobReader reader)
 {
     Offset.Read(reader);
     Size = reader.ReadUInt32();
     Name = reader.ReadAsciiZeroTerminatedString(4);
     if (string.IsNullOrEmpty(Name))
         throw new PEException("invalid StreamHeader.Name");
 }