本文整理汇总了C++中AppendData函数的典型用法代码示例。如果您正苦于以下问题:C++ AppendData函数的具体用法?C++ AppendData怎么用?C++ AppendData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了AppendData函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: if
void CFX_SAXReader::ParseCommentContent() {
if (m_CurByte == '-') {
m_pCommentContext->m_iTailCount++;
} else if (m_CurByte == '>' && m_pCommentContext->m_iTailCount == 2) {
m_iDataLength = m_iDataPos;
m_iDataPos = 0;
if (m_pHandler) {
NotifyTargetData();
}
Pop();
m_eMode = FX_SAXMODE_Text;
} else {
while (m_pCommentContext->m_iTailCount > 0) {
AppendData('-');
m_pCommentContext->m_iTailCount--;
}
AppendData(m_CurByte);
}
}
开发者ID:primiano,项目名称:pdfium-merge,代码行数:19,代码来源:fx_sax_imp.cpp
示例17: AppendData
void CFuncInfoArr::AppendData(
CLogicInt nFuncLineCRLF, //!< 関数のある行(CRLF単位)
CLayoutInt nFuncLineLAYOUT, //!< 関数のある行(折り返し単位)
const NOT_TCHAR* pszFuncName, //!< 関数名
int nInfo, //!< 付加情報
int nDepth //!< 深さ
)
{
AppendData(nFuncLineCRLF,nFuncLineLAYOUT,to_tchar(pszFuncName),nInfo,nDepth);
}
开发者ID:daisukekoba,项目名称:sakura-editor-trunk2,代码行数:10,代码来源:CFuncInfoArr.cpp
示例18: AppendString
void AppendString(LPCSTR string) {
int length = MultiByteToWideChar(CP_ACP, 0, string, -1, NULL, 0);
WCHAR* wideString = (WCHAR*)malloc(sizeof(WCHAR) * length);
MultiByteToWideChar(CP_ACP, 0, string, -1, wideString, length);
AppendData(wideString, length * sizeof(WCHAR));
free(wideString);
}
开发者ID:Desch,项目名称:MythCore,代码行数:10,代码来源:prompt.cpp
示例19: AddStandardComponent
void AddStandardComponent(WORD type, LPCSTR caption, DWORD style, DWORD exStyle,
int x, int y, int w, int h, WORD id, LPSTR font = NULL, WORD fontSize = 8) {
DLGITEMTEMPLATE item;
// DWORD align the beginning of the component data
AlignData(sizeof(DWORD));
item.style = style;
if(font != NULL) {
item.style |= DS_SETFONT;
}
item.x = (short)x;
item.y = (short)y;
item.cx = (short)w;
item.cy = (short)h;
item.id = id;
item.dwExtendedStyle = exStyle;
AppendData(&item, sizeof(DLGITEMTEMPLATE));
WORD preType = 0xFFFF;
AppendData(&preType, sizeof(WORD));
AppendData(&type, sizeof(WORD));
AppendString(caption);
if(font != NULL) {
AppendData(&fontSize, sizeof(WORD));
AppendString(font);
}
// Increment the component count
dialogTemplate->cdit++;
}
开发者ID:Desch,项目名称:MythCore,代码行数:37,代码来源:prompt.cpp
示例20: sizeof
CDialogTemplate::CDialogTemplate(LPCSTR caption, DWORD style, int x, int y, int w, int h,
LPCSTR font, WORD fontSize)
{
usedBufferLength = sizeof(DLGTEMPLATE);
totalBufferLength = usedBufferLength;
dialogTemplate = (DLGTEMPLATE*)malloc(totalBufferLength);
dialogTemplate->style = style;
if (font != NULL)
{
dialogTemplate->style |= DS_SETFONT;
}
dialogTemplate->x = x;
dialogTemplate->y = y;
dialogTemplate->cx = w;
dialogTemplate->cy = h;
dialogTemplate->cdit = 0;
dialogTemplate->dwExtendedStyle = 0;
// Assume no menu or special class
AppendData(_T("\0"), 2);
AppendData(_T("\0"), 2);
// Add the dialog's caption to the template
AppendString(caption);
if (font != NULL)
{
AppendData(&fontSize, sizeof(WORD));
AppendString(font);
}
}
开发者ID:YggdrasiI,项目名称:PBStats,代码行数:36,代码来源:FDialogTemplate.cpp
注:本文中的AppendData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论