本文整理汇总了C#中IImageStream.Clone方法的典型用法代码示例。如果您正苦于以下问题:C# IImageStream.Clone方法的具体用法?C# IImageStream.Clone怎么用?C# IImageStream.Clone使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IImageStream
的用法示例。
在下文中一共展示了IImageStream.Clone方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Win32ResourcesPE
/// <summary>
/// Constructor
/// </summary>
/// <param name="rvaConverter"><see cref="RVA"/>/<see cref="FileOffset"/> converter</param>
/// <param name="dataReader">Data reader (it's used after converting an <see cref="RVA"/>
/// to a <see cref="FileOffset"/>). This instance owns the reader.</param>
/// <param name="rsrcReader">Reader for the whole Win32 resources section (usually
/// the .rsrc section). It's used to read <see cref="ResourceDirectory"/>'s and
/// <see cref="ResourceData"/>'s but not the actual data blob. This instance owns the
/// reader.</param>
public Win32ResourcesPE(IRvaFileOffsetConverter rvaConverter, IImageStream dataReader, IBinaryReader rsrcReader) {
if (dataReader == rsrcReader)
rsrcReader = dataReader.Clone(); // Must not be the same readers
this.rvaConverter = rvaConverter;
this.dataReader = dataReader;
this.rsrcReader = rsrcReader;
Initialize();
}