コード例 #1
0
        internal override void WriteTo(BinaryWriter writer, IAssemblingContext context)
        {
            uint size = context.GetFileSize(this);

            for (int i = 0; i < size; i++)
            {
                writer.Write(m_padding);
            }
        }
コード例 #2
0
 internal override void WriteTo(BinaryWriter writer, IAssemblingContext context)
 {
     if (m_target != null)
     {
         writer.Write(context.GetFileSize(m_target));
     }
     else
     {
         writer.Write((UInt32)0);
     }
 }
コード例 #3
0
            internal override void WriteTo(BinaryWriter writer, IAssemblingContext context)
            {
                uint value = 0;

                foreach (ImageSection section in m_sections)
                {
                    if (Match(section))
                    {
                        value += context.GetFileSize(section);
                    }
                }

                writer.Write(value);
            }