Example #1
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16(rows [i].Col1);                              // PackingSize
         buffer.WriteUInt32(rows [i].Col2);                              // ClassSize
         buffer.WriteRID(rows [i].Col3, Table.TypeDef);                  // Parent
     }
 }
Example #2
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16((ushort)rows [i].Col1);
         buffer.WriteCodedRID(rows [i].Col2, CodedIndex.HasDeclSecurity);
         buffer.WriteBlob(rows [i].Col3);
     }
 }
Example #3
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteCodedRID(rows [i].Col1, CodedIndex.HasCustomAttribute);                     // Parent
         buffer.WriteCodedRID(rows [i].Col2, CodedIndex.CustomAttributeType);                    // Type
         buffer.WriteBlob(rows [i].Col3);
     }
 }
Example #4
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteCodedRID(rows [i].Col1, CodedIndex.MemberRefParent);
         buffer.WriteString(rows [i].Col2);
         buffer.WriteBlob(rows [i].Col3);
     }
 }
Example #5
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16((ushort)rows [i].Col1);                      // Attributes
         buffer.WriteUInt16(rows [i].Col2);                              // Sequence
         buffer.WriteString(rows [i].Col3);                              // Name
     }
 }
Example #6
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16(rows [i].Col1);                               // Number
         buffer.WriteUInt16((ushort)rows [i].Col2);                       // Flags
         buffer.WriteCodedRID(rows [i].Col3, CodedIndex.TypeOrMethodDef); // Owner
         buffer.WriteString(rows [i].Col4);                               // Name
     }
 }
Example #7
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt32(rows [i].Col1);
         buffer.WriteUInt32((uint)rows [i].Col2);
         buffer.WriteString(rows [i].Col3);
         buffer.WriteCodedRID(rows [i].Col4, CodedIndex.Implementation);
     }
 }
Example #8
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16((ushort)rows [i].Col1);                       // Flags
         buffer.WriteCodedRID(rows [i].Col2, CodedIndex.MemberForwarded); // MemberForwarded
         buffer.WriteString(rows [i].Col3);                               // ImportName
         buffer.WriteRID(rows [i].Col4, Table.ModuleRef);                 // ImportScope
     }
 }
Example #9
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteCodedRID(
             rows [i].Col1, CodedIndex.ResolutionScope);                         // Scope
         buffer.WriteString(rows [i].Col2);                                      // Name
         buffer.WriteString(rows [i].Col3);                                      // Namespace
     }
 }
Example #10
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16(0);          // Generation
         buffer.WriteString(rows [i]);   // Name
         buffer.WriteUInt16(1);          // Mvid
         buffer.WriteUInt16(0);          // EncId
         buffer.WriteUInt16(0);          // EncBaseId
     }
 }
Example #11
0
 private void ComputeTableInformations(TableHeapBuffer table_heap)
 {
     MetadataTable[] array = table_heap.tables;
     for (int i = 0; i < array.Length; i++)
     {
         MetadataTable metadataTable = array[i];
         if (metadataTable != null && metadataTable.Length > 0)
         {
             table_infos[i].Length = (uint)metadataTable.Length;
         }
     }
 }
Example #12
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt32(rows [i].Col1);                              // RVA
         buffer.WriteUInt16((ushort)rows [i].Col2);                      // ImplFlags
         buffer.WriteUInt16((ushort)rows [i].Col3);                      // Flags
         buffer.WriteString(rows [i].Col4);                              // Name
         buffer.WriteBlob(rows [i].Col5);                                // Signature
         buffer.WriteRID(rows [i].Col6, Table.Param);                    // ParamList
     }
 }
Example #13
0
        void ComputeTableInformations(TableHeapBuffer table_heap)
        {
            var tables = table_heap.tables;

            for (int i = 0; i < tables.Length; i++)
            {
                var table = tables [i];
                if (table != null && table.Length > 0)
                {
                    table_infos [i].Length = (uint)table.Length;
                }
            }
        }
Example #14
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt32((uint)rows [i].Col1);                        // Attributes
         buffer.WriteString(rows [i].Col2);                              // Name
         buffer.WriteString(rows [i].Col3);                              // Namespace
         buffer.WriteCodedRID(
             rows [i].Col4, CodedIndex.TypeDefOrRef);                    // Extends
         buffer.WriteRID(rows [i].Col5, Table.Field);                    // FieldList
         buffer.WriteRID(rows [i].Col6, Table.Method);                   // MethodList
     }
 }
Example #15
0
 public override void Write(TableHeapBuffer buffer)
 {
     for (int i = 0; i < length; i++)
     {
         buffer.WriteUInt16(rows [i].Col1);                              // MajorVersion
         buffer.WriteUInt16(rows [i].Col2);                              // MinorVersion
         buffer.WriteUInt16(rows [i].Col3);                              // Build
         buffer.WriteUInt16(rows [i].Col4);                              // Revision
         buffer.WriteUInt32((uint)rows [i].Col5);                        // Flags
         buffer.WriteBlob(rows [i].Col6);                                // PublicKeyOrToken
         buffer.WriteString(rows [i].Col7);                              // Name
         buffer.WriteString(rows [i].Col8);                              // Culture
         buffer.WriteBlob(rows [i].Col9);                                // Hash
     }
 }
Example #16
0
 public abstract void Write(TableHeapBuffer buffer);