當前位置: 首頁>>代碼示例>>C++>>正文


C++ AppendData函數代碼示例

本文整理匯總了C++中AppendData函數的典型用法代碼示例。如果您正苦於以下問題:C++ AppendData函數的具體用法?C++ AppendData怎麽用?C++ AppendData使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了AppendData函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C++代碼示例。

示例1: AppendData

void
SourceBuffer::AppendBuffer(const ArrayBufferView& aData, ErrorResult& aRv)
{
  aData.ComputeLengthAndData();

  AppendData(aData.Data(), aData.Length(), aRv);
}
開發者ID:karzler,項目名稱:DivFirefoxTesting,代碼行數:7,代碼來源:SourceBuffer.cpp

示例2: Pop

void CFX_SAXReader::ParseNodeStart() {
  if (m_CurByte == '?') {
    m_pCurItem->m_eNode = FX_SAXNODE_Instruction;
    m_eMode = FX_SAXMODE_TagName;
    return;
  }
  if (m_CurByte == '!') {
    m_eMode = FX_SAXMODE_DeclOrComment;
    return;
  }
  if (m_CurByte == '/') {
    m_eMode = FX_SAXMODE_TagEnd;
    return;
  }
  if (m_CurByte == '>') {
    Pop();
    m_eMode = FX_SAXMODE_Text;
    return;
  }
  if (m_CurByte > 0x20) {
    m_dwDataOffset = m_File.m_dwBufIndex;
    m_pCurItem->m_eNode = FX_SAXNODE_Tag;
    m_eMode = FX_SAXMODE_TagName;
    AppendData(m_CurByte);
  }
}
開發者ID:primiano,項目名稱:pdfium-merge,代碼行數:26,代碼來源:fx_sax_imp.cpp

示例3: NotifyTargetData

void CFX_SAXReader::ParseMaybeClose() {
  if (m_CurByte == '>') {
    if (m_pCurItem->m_eNode == FX_SAXNODE_Instruction) {
      m_iNameLength = m_iDataPos;
      m_iDataPos = 0;
      if (m_pHandler) {
        NotifyTargetData();
      }
    }
    ParseTagClose();
    m_eMode = FX_SAXMODE_Text;
  } else if (m_ePrevMode == FX_SAXMODE_TagName) {
    AppendData('/');
    m_eMode = FX_SAXMODE_TagName;
    m_ePrevMode = FX_SAXMODE_Text;
    ParseTagName();
  } else if (m_ePrevMode == FX_SAXMODE_TagAttributeName) {
    AppendName('/');
    m_eMode = FX_SAXMODE_TagAttributeName;
    m_ePrevMode = FX_SAXMODE_Text;
    ParseTagAttributeName();
  } else if (m_ePrevMode == FX_SAXMODE_TargetData) {
    AppendName('?');
    m_eMode = FX_SAXMODE_TargetData;
    m_ePrevMode = FX_SAXMODE_Text;
    ParseTargetData();
  }
}
開發者ID:primiano,項目名稱:pdfium-merge,代碼行數:28,代碼來源:fx_sax_imp.cpp

示例4: AddStatic

  void AddStatic(LPCSTR caption, DWORD style, DWORD exStyle, int x, int y, int w, int h, WORD id) {
      AddStandardComponent(0x0082, caption, style, exStyle, x, y, w, h, id);

      WORD creationDataLength = 0;
      AppendData(&creationDataLength, sizeof(WORD));

    }
開發者ID:Desch,項目名稱:MythCore,代碼行數:7,代碼來源:prompt.cpp

示例5: scAssert

void scRedispList::AddCell( scColumn* col ) 
{
	scAssert( !FindCell( col ) );

	scColRedisplay colredisp( col, col->GetAPPName() );

	AppendData( (ElementPtr)&colredisp );
}
開發者ID:jimmccurdy,項目名稱:ArchiveGit,代碼行數:8,代碼來源:sccolinf.cpp

示例6: AppendData

void 
PCL6Writer::SetSourceTxMode(Transparency transparency)
{
	AppendData((uint8)transparency);
	AppendAttribute(kTxMode);
	
	AppendOperator(kSetSourceTxMode);
}
開發者ID:looncraz,項目名稱:haiku,代碼行數:8,代碼來源:PCL6Writer.cpp

示例7: AddStandardComponent

void CDialogTemplate::AddEditBox(LPCSTR caption, DWORD style, DWORD exStyle, int x, int y,
								 int w, int h, WORD id)
{
	AddStandardComponent(0x0081, caption, style, exStyle, x, y, w, h, id);

	WORD creationDataLength = 0;
	AppendData(&creationDataLength, sizeof(WORD));
}
開發者ID:YggdrasiI,項目名稱:PBStats,代碼行數:8,代碼來源:FDialogTemplate.cpp

示例8: MOZ_ASSERT

void
SourceBuffer::AppendBuffer(const ArrayBufferView& aData, ErrorResult& aRv)
{
  MOZ_ASSERT(NS_IsMainThread());
  MSE_API("AppendBuffer(ArrayBufferView)");
  aData.ComputeLengthAndData();
  AppendData(aData.Data(), aData.Length(), aRv);
}
開發者ID:RobertJGabriel,項目名稱:Waterfox,代碼行數:8,代碼來源:SourceBuffer.cpp

示例9: ClearStatisticData

void CStaticLearningEngine::SetData(int dim, const CEvidence * const* pEvidences)
{
    m_critValue.clear();
    m_Vector_pEvidences.clear();
    ClearStatisticData();
    AppendData(dim, pEvidences);
    m_numberOfAllEvidences=m_Vector_pEvidences.size();
    
}
開發者ID:JacobCWard,項目名稱:PyPNL,代碼行數:9,代碼來源:pnlStaticLearningEngine.cpp

示例10: memset

//====================================================================================================================
// Transform temp data as a normal block (filling it will null sound to complet block)
//====================================================================================================================
void cSoundBlockList::UseLatestData() {
    // Use data in TempData to create a latest block
    if (CurrentTempSize>0) {
        int8_t *EndData=(int8_t *)av_malloc(SoundPacketSize+8);
        memset(EndData,0,SoundPacketSize+8);
        AppendData(0,(int16_t *)EndData,SoundPacketSize-CurrentTempSize);
        av_free(EndData);
    }
}
開發者ID:JonasCz,項目名稱:ffdiaporama-1604-builds,代碼行數:12,代碼來源:cSoundBlockList.cpp

示例11: AppendData

// add rubi data and sort the data
BOOL scRubiArray::AddRubiData( scRubiData& rd )
{
	if ( IsRubiData( rd.fStartOffset, rd.fEndOffset ) )
		return false;
	
	AppendData( (ElementPtr)&rd );
	QuickSort( rubi_sort );
	return true;
}
開發者ID:jimmccurdy,項目名稱:ArchiveGit,代碼行數:10,代碼來源:scrubi.cpp

示例12: AddListBox

  void AddListBox(LPCSTR caption, DWORD style, DWORD exStyle, int x, int y, int w, int h, WORD id) {
      AddStandardComponent(0x0083, caption, style, exStyle, x, y, w, h, id);

      WORD creationDataLength = sizeof(WORD) + 5 * sizeof(WCHAR);
      AppendData(&creationDataLength, sizeof(WORD));

      AppendString("TEST");

    }
開發者ID:Desch,項目名稱:MythCore,代碼行數:9,代碼來源:prompt.cpp

示例13: AppendData

void CBayesLearningEngine::SetData( int size, 
                                    const CEvidence* const* pEvidencesIn )
{
    //clear previously set data. Clear learning data
    m_Vector_pEvidences.clear();
    AppendData(size, pEvidencesIn);
	ClearStatisticData();
	m_numberOfAllEvidences = m_Vector_pEvidences.size();
    m_numberOfLearnedEvidences = 0;
}
開發者ID:lspatial,項目名稱:spstatics_parallel,代碼行數:10,代碼來源:pnlBayesLearningEngine.cpp

示例14: normals

void MaterialShellObject::AppendData(const std::vector<glm::vec3>& vertices,
                                     const std::vector<glm::ivec3>& indices,
                                     const Material& material)
{
    // Calculate and copy normals
    std::vector<glm::vec3> normals(vertices.size(), glm::vec3(0.0, 0.0, 0.0));
    CalculateNormals(vertices, indices, normals);

    AppendData(vertices, normals, indices, material);
}
開發者ID:tdenis8,項目名稱:S3DR,代碼行數:10,代碼來源:material_shell_object.cpp

示例15: AppendData

	//private
	int	KNetServer::Receive(unsigned long nId)
	{
		//獲得數據
		size_t nDataLen = 0;
		TRoleNetMsg *pMsg;
		pMsg =(TRoleNetMsg*) m_pNetServer->GetPackFromClient(nId, nDataLen);

		if (nDataLen == 0 || pMsg == NULL)	return 0;
		return AppendData(nId, pMsg, nDataLen);
	}
開發者ID:XeanoRRR,項目名稱:mmo-resourse,代碼行數:11,代碼來源:KRoleDBServer.cpp


注:本文中的AppendData函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。