internal override void WriteTo(BinaryWriter writer, IAssemblingContext context)
 {
     if (m_target != null)
     {
         writer.Write(context.GetFileAddress(m_target));
     }
     else
     {
         writer.Write((UInt32)0);
     }
 }
Ejemplo n.º 2
0
        internal override uint ComputeFileSize(IAssemblingContext context)
        {
            uint modulo = context.GetFileAddress(this) % m_fileAlignment;

            if (modulo == 0)
            {
                return(0);
            }

            return(m_fileAlignment - modulo);
        }