Пример #1
0
        internal LogicalSegment(
            SegmentDefinition def,
            Dictionary<object, object> objectMap,
            ObjectModule module)
        {
            if (def.IsUse32)
                throw new NotSupportedException("Use32 is not supported.");
            if (def.Length > 0x10000)
                throw new NotSupportedException("Segments larger than 64KB are not supported.");

            this.definition = def;
            this.fullName = module.Name + "." + def.SegmentName;
            this.data = def.Data;
        }
Пример #2
0
 private static LogicalSegment ConvertSegmentDefinition(
     SegmentDefinition def, Dictionary<object, object> objectMap,
     ObjectModule module)
 {
     // Convert the record.
     LogicalSegment segment = new LogicalSegment(def, objectMap, module);
     return segment;
 }