public override void Deserialize(IBinaryAccessor accessor)
 {
     _applyToMembers        = accessor.ReadBoolean();
     _exclude               = accessor.ReadBoolean();
     _feature               = accessor.ReadLengthPrefixedString(Encoding.Unicode);
     _stripAfterObfuscation = accessor.ReadBoolean();
 }
        private void StateLoad(IBinaryAccessor accessor, Module module)
        {
            _maxStackSize = accessor.Read7BitEncodedInt();

            _initLocals = accessor.ReadBoolean();

            _localVarToken = accessor.ReadInt32();

            StateLoadInstructions(accessor, module);

            StateLoadLocalVariables(accessor, module);

            StateLoadExceptionHandlers(accessor, module);
        }
 public override void Deserialize(IBinaryAccessor accessor)
 {
     _bindable  = accessor.ReadBoolean();
     _direction = (BindingDirection)accessor.Read7BitEncodedInt();
 }
        internal void Read(IBinaryAccessor accessor, ProjectReadState state)
        {
            _filePath   = ProjectHelper.MakeAbsolutePath(state.GetString(accessor.Read7BitEncodedInt()), state.BasePath);
            _outputPath = ProjectHelper.MakeAbsolutePath(state.GetString(accessor.Read7BitEncodedInt()), state.BasePath);
            _flags      = accessor.ReadInt32();
            _flags2     = accessor.ReadInt32();
            _flags3     = accessor.ReadInt32();

            if (NameChanged)
            {
                _name = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (CultureChanged)
            {
                _culture = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (VersionChanged)
            {
                _version = new Version(accessor.ReadUInt16(), accessor.ReadUInt16(), accessor.ReadUInt16(), accessor.ReadUInt16());
            }

            if (TitleChanged)
            {
                _title = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (DescriptionChanged)
            {
                _description = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (CompanyChanged)
            {
                _company = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (ProductChanged)
            {
                _product = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (CopyrightChanged)
            {
                _copyright = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (TrademarkChanged)
            {
                _trademark = state.GetString(accessor.Read7BitEncodedInt());
            }

            if (accessor.ReadBoolean())
            {
                _sign = new ProjectAssemblySign(accessor, state);
            }

            ReadModules(accessor, state);
            ReadResources(accessor, state);
        }
Пример #5
0
 public override void Deserialize(IBinaryAccessor accessor)
 {
     _assemblyIsPrivate     = accessor.ReadBoolean();
     _stripAfterObfuscation = accessor.ReadBoolean();
 }
 internal void Read(IBinaryAccessor accessor, ProjectReadState state)
 {
     _keyFilePath = ProjectHelper.MakeAbsolutePath(state.GetString(accessor.Read7BitEncodedInt()), state.BasePath);
     _password    = state.GetString(accessor.Read7BitEncodedInt());
     _delaySign   = accessor.ReadBoolean();
 }