boost::intrusive_ptr<DefinitionImage> DefinitionShape::findImage(int Id) { if (getDataInfo()) { auto info = fla::ptr_case<FlaDataInfoWithImages>(getDataInfo()); return info->findImage(Id); } return boost::intrusive_ptr<DefinitionImage>(); }
/** *\fn int getLayoutDataInfo(P2PMsg *msg) *\brief 得到本层的数据。 *\param[in] msg 命令包。 *\return 是否成功,0成功,其它失败。 */ int P2PIocpLayout::getLayoutDataInfo(P2PMsg *msg) { P2PInsideMsg *dataInfo = (P2PInsideMsg*)msg; P2P_DATA_PTR_LIST *dataList = (P2P_DATA_PTR_LIST*)dataInfo->getLayoutList(); dataList->push_back(getDataInfo()); return 0; }
static int32_t getTypeEnumForInputData(const uint8_t *data, int32_t length, UErrorCode *pErrorCode) { const UDataInfo *pInfo; int32_t infoLength, headerLength; /* getDataInfo() checks for illegal arguments */ pInfo=getDataInfo(data, length, infoLength, headerLength, pErrorCode); if(pInfo==NULL) { return -1; } return makeTypeEnum(pInfo->charsetFamily, (UBool)pInfo->isBigEndian); }
IpfixRecord::FieldInfo* getDataInfo(IpfixRecord::FieldInfo::Type* type) { return getDataInfo(type->id, type->eid); }