您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ DumpString函数代码示例

51自学网 2021-06-01 20:30:30
  C++
这篇教程C++ DumpString函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中DumpString函数的典型用法代码示例。如果您正苦于以下问题:C++ DumpString函数的具体用法?C++ DumpString怎么用?C++ DumpString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了DumpString函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: DumpConstants

static void DumpConstants(const Proto* f, DumpState* D){ int i,n=f->sizek; DumpInt(n,D); for (i=0; i<n; i++) {  const TValue* o=&f->k[i];  DumpChar(ttype(o),D);  switch (ttype(o))  {   case LUA_TNIL:	break;   case LUA_TBOOLEAN:	DumpChar(bvalue(o),D);	break;   case LUA_TNUMBER:	DumpNumber(nvalue(o),D);	break;   case LUA_TSTRING:	DumpString(rawtsvalue(o),D);	break;  } } n=f->sizep; DumpInt(n,D); for (i=0; i<n; i++) DumpFunction(f->p[i],D);}
开发者ID:alucard-dracula,项目名称:yggdrasil,代码行数:27,


示例2: DumpLine

int          clsDump::DumpScope(clsScope * pScope, int onlyCalculateSize){  int          iSize = 0;  unsigned int iIndex;  iSize += DumpLine("----- SCOPE BEG -----/n", onlyCalculateSize);  iSize += DumpLine("/tUID %u/n", pScope->m_UID, onlyCalculateSize);  iSize += DumpLocation(pScope->m_Location, onlyCalculateSize);  _Assert(pScope->m_pParentScope && "Frontend Error: All scopes should have a parent.");  iSize += DumpLine("/tParent Scope UID %u/n", pScope->m_pParentScope->m_UID, onlyCalculateSize);  _Assert(pScope->m_pRootScope && "Frontend Error: All scopes should have a root.");  iSize += DumpLine("/tRoot Scope UID %u/n", pScope->m_pRootScope->m_UID, onlyCalculateSize);  iSize += DumpLine("/tNumber of Children Scopes %u/n", pScope->m_pChildrenScopes.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pChildrenScopes.size(); ++iIndex)  {    iSize += DumpLine("/tChild Scope UID %u/n", pScope->m_pChildrenScopes[iIndex]->m_UID, onlyCalculateSize);  }  iSize += DumpLine("/tNumber of Signals %u/n", pScope->m_pSignals.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pSignals.size(); ++iIndex)  {    iSize += DumpLine("/tSignal UID %u/n", pScope->m_pSignals[iIndex]->m_UID, onlyCalculateSize);  }  iSize += DumpLine("/tNumber of Arguments %u/n", pScope->m_pArguments.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pArguments.size(); ++iIndex)  {    iSize += DumpLine("/tArgument UID %u/n", pScope->m_pArguments[iIndex]->m_UID, onlyCalculateSize);  }  iSize += DumpLine("/tNumber of Parameters %u/n", pScope->m_pParameters.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pParameters.size(); ++iIndex)  {    iSize += DumpLine("/tParameter UID %u/n", pScope->m_pParameters[iIndex]->m_UID, onlyCalculateSize);  }  iSize += DumpLine("/tNumber of Conditions %u/n", pScope->m_pConditions.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pConditions.size(); ++iIndex)  {    iSize += DumpLine("/tCondition UID %u/n", pScope->m_pConditions[iIndex]->m_UID, onlyCalculateSize);  }  iSize += DumpLine("/tNumber of Events %u/n", pScope->m_pEvents.size(), onlyCalculateSize);  for (iIndex = 0; iIndex < pScope->m_pEvents.size(); ++iIndex)  {    iSize += DumpLine("/tEvent UID %u/n", pScope->m_pEvents[iIndex]->m_UID, onlyCalculateSize);  }  if (pScope->m_pBasicBlock)  {    iSize += DumpLine("/tHas Basicblock %u/n", true, onlyCalculateSize);    iSize += DumpLine("/tBasicblock UID %u/n", pScope->m_pBasicBlock->m_UID, onlyCalculateSize);  }  else  {    iSize += DumpLine("/tHas No Basicblock %u/n", false, onlyCalculateSize);  }  iSize += DumpString("/tScope Name/n", pScope->m_sScopeName, onlyCalculateSize);  iSize += DumpLine("/tScope Type UID %u/n", pScope->m_pScopeType->m_UID, onlyCalculateSize);  iSize += DumpLine("/tScope is Root = %u/n", pScope->m_IsRoot, onlyCalculateSize);  iSize += DumpLine("/tScope is Automatic = %u/n", pScope->m_IsAutomatic, onlyCalculateSize);  iSize += DumpLine("----- SCOPE END -----/n", onlyCalculateSize);  return iSize;}
开发者ID:CModelGen,项目名称:frontend,代码行数:59,


示例3: DumpDebug

static void DumpDebug (const Proto *f, DumpState *D) {  int i, n;  n = (D->strip) ? 0 : f->sizelineinfo;  DumpInt(n, D);  DumpVector(f->lineinfo, n, D);  n = (D->strip) ? 0 : f->sizelocvars;  DumpInt(n, D);  for (i = 0; i < n; i++) {    DumpString(f->locvars[i].varname, D);    DumpInt(f->locvars[i].startpc, D);    DumpInt(f->locvars[i].endpc, D);  }  n = (D->strip) ? 0 : f->sizeupvalues;  DumpInt(n, D);  for (i = 0; i < n; i++)    DumpString(f->upvalues[i].name, D);}
开发者ID:ezEngine,项目名称:ezEngine,代码行数:17,


示例4: DumpFunction

static void DumpFunction (const Proto *f, TString *psource, DumpState *D) {  const SharedProto *sp = f->sp;  if (D->strip || sp->source == psource)    DumpString(NULL, D);  /* no debug info or same source as its parent */  else    DumpString(sp->source, D);  DumpInt(sp->linedefined, D);  DumpInt(sp->lastlinedefined, D);  DumpByte(sp->numparams, D);  DumpByte(sp->is_vararg, D);  DumpByte(sp->maxstacksize, D);  DumpCode(sp, D);  DumpConstants(f, D);  DumpUpvalues(f, D);  DumpProtos(f, D);  DumpDebug(sp, D);}
开发者ID:deway,项目名称:node-lua,代码行数:17,


示例5: DumpDebug

static void DumpDebug(const LuaProto* f, DumpState* D){ int i,n; DumpString((D->strip) ? NULL : f->source,D); n= (D->strip) ? 0 : (int)f->lineinfo.size(); DumpVector(f->lineinfo.begin(),n,sizeof(int),D); n= (D->strip) ? 0 : (int)f->locvars.size(); DumpInt(n,D); for (i=0; i<n; i++) {  DumpString(f->locvars[i].varname,D);  DumpInt(f->locvars[i].startpc,D);  DumpInt(f->locvars[i].endpc,D); } n= (D->strip) ? 0 : (int)f->upvalues.size(); DumpInt(n,D); for (i=0; i<n; i++) DumpString(f->upvalues[i].name,D);}
开发者ID:aappleby,项目名称:Lumina,代码行数:18,


示例6: DumpOc

extern  void    DumpOc( ins_entry *ins ) {/****************************************/    DumpPtr( ins );    DumpLiteral( " " );    DumpString(  CNames[ _Class( ins ) ] );    DumpLiteral( " " );    if( _Class( ins ) != OC_INFO ) {        CheckAttr( ins->oc.oc_header.class );    }
开发者ID:Ukusbobra,项目名称:open-watcom-v2,代码行数:10,


示例7: DumpOc

void    DumpOc( ins_entry *ins )/******************************/{    DumpPtr( ins );    DumpChar( ' ' );    DumpString(  CNames[_Class( ins )] );    DumpChar( ' ' );    if( _Class( ins ) != OC_INFO ) {        CheckAttr( ins->oc.oc_header.class );    }
开发者ID:ArmstrongJ,项目名称:open-watcom-v2,代码行数:10,


示例8: DumpLocals

static void DumpLocals(const Proto* tf, void* D){	int i,n=tf->nlocvars;	DumpInt(n,D);	for (i=0; i<n; i++)	{		DumpString(tf->locvars[i].varname,D);		DumpInt(tf->locvars[i].startpc,D);		DumpInt(tf->locvars[i].endpc,D);	}}
开发者ID:jcubic,项目名称:ToME,代码行数:11,


示例9: DumpLocals

static void DumpLocals(const Proto* f, DumpState* D){ int i,n=f->sizelocvars; DumpInt(n,D); for (i=0; i<n; i++) {  DumpString(f->locvars[i].varname,D);  DumpInt(f->locvars[i].startpc,D);  DumpInt(f->locvars[i].endpc,D); }}
开发者ID:Falcon-peregrinus,项目名称:angband-russian,代码行数:11,


示例10: DumpLine

int          clsDump::DumpLocation(clsLocation Location, int onlyCalculateSize){  int iSize = 0;  iSize += DumpLine("- - - LOCATION BEG - - -/n", onlyCalculateSize);  iSize += DumpString("/tFile/n", Location.m_sFile, onlyCalculateSize);  iSize += DumpLine("/tLine %u/n", Location.m_iLine, onlyCalculateSize);  iSize += DumpLine("- - - LOCATION END - - -/n", onlyCalculateSize);  return iSize;}
开发者ID:CModelGen,项目名称:frontend,代码行数:11,


示例11: DumpFunction

static void DumpFunction(const Proto* tf, void* D){	DumpString(tf->source,D);	DumpInt(tf->lineDefined,D);	DumpInt(tf->numparams,D);	DumpByte(tf->is_vararg,D);	DumpInt(tf->maxstacksize,D);	DumpLocals(tf,D);	DumpLines(tf,D);	DumpConstants(tf,D);	DumpCode(tf,D);}
开发者ID:jcubic,项目名称:ToME,代码行数:12,


示例12: DumpConstants

static void DumpConstants(const Proto* tf, void* D){	int i,n;	DumpInt(n=tf->nkstr,D);	for (i=0; i<n; i++)		DumpString(tf->kstr[i],D);	DumpInt(tf->nknum,D);	DumpVector(tf->knum,tf->nknum,sizeof(*tf->knum),D);	DumpInt(n=tf->nkproto,D);	for (i=0; i<n; i++)		DumpFunction(tf->kproto[i],D);}
开发者ID:jcubic,项目名称:ToME,代码行数:12,


示例13: DumpDebug

static void DumpDebug (const Proto *f, DumpState *D) {  int i, n;  n = (D->strip) ? 0 : f->sizelineinfo;  DumpInt(n, D);  DumpVector(f->lineinfo, n, D);  /* n = (D->strip) ? 0 : f->sizelocvars; */  n = f->sizelocvars;  DumpInt(n, D);  for (i = 0; i < n; i++) {    DumpString((D->strip) ? NULL : f->locvars[i].varname, D);    DumpInt(f->locvars[i].startpc, D);    DumpInt(f->locvars[i].endpc, D);    DumpByte(f->locvars[i].ravi_type, D);  }  /* n = (D->strip) ? 0 : f->sizeupvalues; */  n = f->sizeupvalues;  DumpInt(n, D);  for (i = 0; i < n; i++) {    DumpString((D->strip) ? NULL : f->upvalues[i].name, D);    DumpByte(f->upvalues[i].type, D);  }}
开发者ID:duchuan123,项目名称:ravi,代码行数:22,


示例14: DumpFunction

static void DumpFunction(const Proto* f, const TString* p, DumpState* D){    DumpString((f->source==p || D->strip) ? NULL : f->source,D);    DumpInt(f->linedefined,D);    DumpInt(f->lastlinedefined,D);    DumpChar(f->nups,D);    DumpChar(f->numparams,D);    DumpChar(f->is_vararg,D);    DumpChar(f->maxstacksize,D);    DumpCode(f,D);    DumpConstants(f,D);    DumpDebug(f,D);}
开发者ID:luiseduardohdbackup,项目名称:lua4wince,代码行数:13,


示例15: AnalogDevicesSync

/**  Attempt to synchronize with an Analog Device ARM micro.  Sends abackspace and reads back the microcontrollers response.  Performsmultiple retries. Exits the program on error, returns to caller in thecase of success.*/static void AnalogDevicesSync(ISP_ENVIRONMENT *IspEnvironment){    BINARY sync;                        /* Holds sync command.          */    AD_SYNC_RESPONSE response;          /* Response from micro.         */    int sync_attempts;                  /* Number of retries.           */    /*  Make sure we don't read garbage later instead of the        */    /* response we expect from the micro.                           */    ClearSerialPortBuffers(IspEnvironment);    DebugPrintf(2, "Synchronizing/n"); /* Progress report.             */    sync = ANALOG_DEVICES_SYNC_CHAR;    /* Build up sync command.       */    /*  Perform the actual sync attempt.  First send the sync       */    /* character, the attempt to read back the response.  For the   */    /* AD ARM micro this is a fixed length block.  If response is   */    /* received attempt to validate it by comparing the first       */    /* characters to those expected.  If the received block does    */    /* not validate or is incomplete empty the serial buffer and    */    /* retry.                                                       */    for (sync_attempts = 0; sync_attempts < 5; sync_attempts++)    {        SendComPortBlock(IspEnvironment, &sync, 1);        if (ReceiveComPortBlockComplete(IspEnvironment, &response, sizeof(response),            500) == 0)        {            if (memcmp(response.product_id, ANALOG_DEVICES_SYNC_RESPONSE,                ANALOG_DEVICES_SYNC_SIZE) == 0)            {                return;            }            else            {                DumpString(3, &response, sizeof(response),                    "Unexpected response to sync attempt ");            }        }        else        {            DebugPrintf(3, "No (or incomplete) answer on sync attempt/n");        }        ClearSerialPortBuffers(IspEnvironment);    }    DebugPrintf(1, "No (or unacceptable) answer on sync attempt/n");    exit(4);}
开发者ID:Vanganesha,项目名称:oufffteam,代码行数:56,


示例16: DumpFunction

static void DumpFunction(const Proto* f, const TString* p, DumpState* D){ DumpString((f->source==p) ? NULL : f->source,D); DumpInt(f->lineDefined,D); DumpByte(f->nups,D); DumpByte(f->numparams,D); DumpByte(f->is_vararg,D); DumpByte(f->maxstacksize,D); DumpLines(f,D); DumpLocals(f,D); DumpUpvalues(f,D); DumpConstants(f,D); DumpCode(f,D);}
开发者ID:Falcon-peregrinus,项目名称:angband-russian,代码行数:14,


示例17: DumpContents

bool DumpContents( WResTypeInfo *type, WResResInfo *res,                    WResLangInfo *lang, WResFileID handle, uint_16 os )/*********************************************************************/{    bool    error;    res = res;    fprintf( stdout, "/tOffset: 0x%08lx  Length: 0x%08lx/n",            lang->Offset, lang->Length );    if (type->TypeName.IsName) {        /* it is not one of the predefined types */        error = false;    } else {        switch (type->TypeName.ID.Num) {        case RESOURCE2INT( RT_MENU ):            if( os == WRES_OS_WIN16 ) {                error = DumpMenu( lang->Offset, lang->Length, handle );            } else {                error = false;            }            break;        case RESOURCE2INT( RT_DIALOG ):            if( os == WRES_OS_WIN16 ) {                error = DumpDialog( lang->Offset, lang->Length, handle );            } else {                error = false;            }            break;        case RESOURCE2INT( RT_GROUP_ICON ):            error = DumpIconGroup( lang->Offset, lang->Length, handle );            break;        case RESOURCE2INT( RT_GROUP_CURSOR ):            error = DumpCursorGroup( lang->Offset, lang->Length, handle );            break;        case RESOURCE2INT( RT_STRING ):            if( os == WRES_OS_WIN16 ) {                error = DumpString( lang->Offset, lang->Length, handle );            } else {                error = false;            }            break;        default:            error = false;            break;        }    }    return( error );}
开发者ID:Azarien,项目名称:open-watcom-v2,代码行数:50,


示例18: DumpFunction

void DumpFunction(TFunc* tf, FILE* D){ lastF=tf; ThreadCode(tf->code,tf->code+tf->size); fputc(ID_FUN,D); DumpSize(tf->size,D); DumpWord(tf->lineDefined,D); if (IsMain(tf))  DumpString(tf->fileName,D); else  DumpWord(tf->marked,D); DumpBlock(tf->code,tf->size,D); DumpStrings(D);}
开发者ID:Akagi201,项目名称:learning-lua,代码行数:14,


示例19: wmain

int __cdecl wmain(int argc, WCHAR* argv[]){	// Tèst string ?? n
C++ DumpVar函数代码示例
C++ DumpPacket函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。