コード例 #1
0
ファイル: MetadataBuffer.cs プロジェクト: zsr2531/AsmResolver
 public MetadataBuffer(MetadataImage image)
 {
     Image                  = image ?? throw new ArgumentNullException(nameof(image));
     TableStreamBuffer      = new TableStreamBuffer(this);
     BlobStreamBuffer       = new BlobStreamBuffer(this);
     StringStreamBuffer     = new StringStreamBuffer();
     UserStringStreamBuffer = new UserStringStreamBuffer();
     GuidStreamBuffer       = new GuidStreamBuffer(this);
     ResourcesBuffer        = new ResourcesBuffer();
 }
コード例 #2
0
ファイル: MetadataBuffer.cs プロジェクト: xuhaoa/WinPIT
        public MetadataBuffer(MetadataImage image)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }

            Image                  = image;
            TableStreamBuffer      = new TableStreamBuffer(this);
            BlobStreamBuffer       = new BlobStreamBuffer(this);
            StringStreamBuffer     = new StringStreamBuffer();
            UserStringStreamBuffer = new UserStringStreamBuffer();
            GuidStreamBuffer       = new GuidStreamBuffer(this);
            ResourcesBuffer        = new ResourcesBuffer();
        }