public VerifyNameIndex ( uint nindex ) : bool | ||
nindex | uint | The constant pool index |
리턴 | bool |
/// <summary> /// /// </summary> /// <param name="abc"></param> public void Verify( AbcFile abc ) { if ( ( !abc.VerifyNameIndex( _Key ) ) || ( !abc.VerifyNameIndex( _Value ) ) ) { AbcVerifierException ave = new AbcVerifierException( "Invalid Key/Value pair: " + _Key.ToString( "d" ) + "/" + _Value.ToString( "d" ) ); Log.Error(this, ave ); throw ave; } }
/// <summary> /// /// </summary> /// <param name="abc"></param> public void Verify(AbcFile abc) { if (!abc.VerifyNameIndex(_Name)) { AbcVerifierException ave = new AbcVerifierException("Invalid Name entry " + _Name.ToString("d")); Log.Error(this, ave); throw ave; } foreach (Metadata_item_info i in _ItemInfo) { i.Verify(abc); } }
/// <summary> /// /// </summary> /// <param name="abc"></param> public void Verify(AbcFile abc) { for (int i = 0; i < ParamType.Count; i++) { if (!abc.VerifyMultinameIndex(ParamType[i])) { AbcVerifierException ave = new AbcVerifierException("Invalid param type in method_info: " + ParamType[i].ToString("d")); Log.Error(this, ave); throw ave; } } if (!abc.VerifyNameIndex(Name)) { AbcVerifierException ave = new AbcVerifierException("Invalid method name : " + Name.ToString("d")); Log.Error(this, ave); throw ave; } if (!abc.VerifyMultinameIndex(ReturnType)) { AbcVerifierException ave = new AbcVerifierException("Invalid return type: " + ReturnType.ToString("d")); Log.Error(this, ave); throw ave; } if (FlagHasOptional) { for (int i = 0; i < Option.Count; i++) { Option[i].Verify(abc); } } if (FlagHasParamNames) { for (int i = 0; i < ParamNames.Count; i++) { if (!abc.VerifyNameIndex(ParamNames[i])) { AbcVerifierException ave = new AbcVerifierException("Invalid param name: " + ParamNames[i].ToString("d")); Log.Error(this, ave); throw ave; } } } }