当前位置: 首页>>代码示例>>C++>>正文


C++ CFRecord::skipNunBytes方法代码示例

本文整理汇总了C++中CFRecord::skipNunBytes方法的典型用法代码示例。如果您正苦于以下问题:C++ CFRecord::skipNunBytes方法的具体用法?C++ CFRecord::skipNunBytes怎么用?C++ CFRecord::skipNunBytes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CFRecord的用法示例。


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

示例1: load

void ExtRst::load(CFRecord& record)
{
	record.skipNunBytes(2); // reserved
	record >> cb;
	size_t data_start = record.getRdPtr();
	record >> phs;

	rphssub.sz = cb;

	record >> rphssub;
	for(unsigned short i = 0; i < rphssub.getRunsNumber(); ++i)
	{
		PhRuns run;
		record >> run;
		rgphruns.push_back(run);

	}
	size_t data_end = record.getRdPtr();
	if(data_end - data_start != cb)
	{
		//ОШИБКА - нехватило Continue records - нужно найти место где именно и подзагрузить
		if ((data_end - data_start)  < cb )
			record.skipNunBytes( cb - (data_end - data_start)); // trash for unknown reason
		else
			record.RollRdPtrBack((data_end - data_start) - cb);
	}

}
开发者ID:shrekting,项目名称:core,代码行数:28,代码来源:ExtRst.cpp

示例2: load

void AddinUdf::load(CFRecord& record)
{
	record.skipNunBytes(4); // reserved
	record >> udfName;

	unsigned short cb;
	record >> cb;
	record.skipNunBytes(cb); // unused
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:9,代码来源:AddinUdf.cpp

示例3: load

void FtGboData::load(CFRecord& record)
{
	record.skipNunBytes(4); // reserved

	record >> accel;
	record.skipNunBytes(2); // reserved
	unsigned short flags;
	record >> flags;
	fNo3d = GETBIT(flags, 0);
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:10,代码来源:FtGboData.cpp

示例4: load

void PictFmlaEmbedInfo::load(CFRecord& record)
{
	record.skipNunBytes(1); // reserved

	unsigned char cbClass;
	record >> cbClass;
	record.skipNunBytes(1); // reserved

	strClass.setSize(cbClass);
	record >> strClass;
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:11,代码来源:PictFmlaEmbedInfo.cpp

示例5:

void PtgRefErr3d::loadFields(CFRecord& record)
{
	global_info = record.getGlobalWorkbookInfo();

	record >> ixti;
	record.skipNunBytes(4); // unused
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:7,代码来源:PtgRefErr3d.cpp

示例6: readFields

void ContinueBigName::readFields(CFRecord& record)
{
#pragma message("####################### ContinueBigName record is not implemented")
	Log::error("ContinueBigName record is not implemented.");

	record.skipNunBytes(record.getDataSize() - record.getRdPtr());
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:7,代码来源:ContinueBigName.cpp

示例7: readFields

void RecalcId::readFields(CFRecord& record)
{
	unsigned short rt;
	record >> rt;
	record.skipNunBytes(2); // reserved
	record >> dwBuild;
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:7,代码来源:RecalcId.cpp

示例8: readFields

void SortData::readFields(CFRecord& record)
{
	record.skipNunBytes(12);
#pragma message("############################ frtHeader skipped here")
	
	unsigned short flags;
	record >> flags;

	fCol			= GETBIT(flags, 0);
	fCaseSensitive	= GETBIT(flags, 1);
	fAltMethod		= GETBIT(flags, 2);
	sfp				= GETBITS(flags, 3, 5);
	
	RFX rfx_orig;
	record >> rfx_orig >> cconditions;
	rfx = static_cast<std::wstring >(rfx_orig);
	
	record >> idParent;
	
	std::list<CFRecordPtr>& recs = continue_records[rt_ContinueFrt12];
	while(!recs.empty())
	{
		#pragma message("############################ frtRefHeader skipped here")
		record.appendRawData(recs.front()->getData() + 12, recs.front()->getDataSize() - 12);
		recs.pop_front();
	}
	
	for(unsigned int i = 0; i < cconditions; ++i)
	{
		SortCond12Ptr sort_cond(new SortCond12);
		record >> *sort_cond;
		sortCond12Array.push_back(sort_cond);
	}

}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:35,代码来源:SortData.cpp

示例9: load

void DVParsedFormula::load(CFRecord& record)
{
	unsigned short cce;
	record >> cce;
	record.skipNunBytes(2); // unused
	rgce.load(record, cce);
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:7,代码来源:DVParsedFormula.cpp

示例10: readFields

void ScenMan::readFields(CFRecord& record)
{
#pragma message("####################### ScenMan record is not implemented")
	Log::error("ScenMan record is not implemented.");

	record.skipNunBytes(record.getDataSize() - record.getRdPtr());
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:7,代码来源:ScenMan.cpp

示例11: readFields

void FrtWrapper::readFields(CFRecord& record)
{
#pragma message("####################### FrtWrapper record is not implemented")
	Log::error("FrtWrapper record is not implemented.");
	
	record.skipNunBytes(record.getDataSize() - record.getRdPtr());

}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:8,代码来源:FrtWrapper.cpp

示例12: readFields

void Continue::readFields(CFRecord& record)
{
	m_iDataSize = record.getDataSize();
	m_pData		= new char[m_iDataSize];	
	memcpy(m_pData, record.getData(), m_iDataSize);

	record.skipNunBytes(m_iDataSize);
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:8,代码来源:Continue.cpp

示例13: readFields

void DbOrParamQry::readFields(CFRecord& record)
{
#pragma message("####################### DbOrParamQry record is not implemented")
	Log::error("DbOrParamQry record is not implemented.");
	//record >> some_value;

	record.skipNunBytes(record.getDataSize() - record.getRdPtr());
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:8,代码来源:DbOrParamQry.cpp

示例14: readFields

void SXDBB::readFields(CFRecord& record)
{
	size = record.getDataSize() - record.getRdPtr();

	blob = boost::shared_array<unsigned char>(new unsigned char[size]);

	memcpy(blob.get(), record.getCurData<unsigned char>(), size);

	record.skipNunBytes(size);
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:10,代码来源:SXDBB.cpp

示例15: readFields

void MulRk::readFields(CFRecord& record)
{
	global_info_ = record.getGlobalWorkbookInfo();

// A little hack to extract colLast before it is used
	record.skipNunBytes(record.getDataSize() - sizeof(unsigned short));
	record >> colLast;
	record.resetPointerToBegin();
//------------------
	record >> rw >> colFirst;
	for(unsigned short i = colFirst; i <= colLast; ++i)
	{
		RkRec rec;
		record >> rec;
		rgrkrec.push_back(RkRecPtr(new RkRec(rec)));
		cells.push_back(CellPtr(new Cell(rw, i, rec.get_ixfe())));
	}

	record.skipNunBytes(sizeof(unsigned short));
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:20,代码来源:MulRk.cpp


注:本文中的CFRecord::skipNunBytes方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。