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


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

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


在下文中一共展示了CFRecord::RollRdPtrBack方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 FtMacro::load(CFRecord& record)
{
	short ft;
	record >> ft; 
	if (ft != 0x0004)
	{
		record.RollRdPtrBack(2);
		return;
	}
	fExist = true;
	fmla.load(record);
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:12,代码来源:FtMacro.cpp

示例3: load

void FtEdoData::load(CFRecord& record)
{
	unsigned short ft, cb;
	record >> ft >> cb;

	if ( ft != 0x0010 && cb != 0x0008)
	{
		record.RollRdPtrBack(4);
		return;
	}
	fExist = true;

	record >> ivtEdit >> fMultiLine >> fVScroll >> id;
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:14,代码来源:FtEdoData.cpp

示例4: load

void FtCf::load(CFRecord& record)
{
	//record.skipNunBytes(4); // reserved
	unsigned short ft, cb;
	record >> ft;
	
	// OpenOffice fuck!!!
	if (ft == 0)
		record.RollRdPtrBack(2);		
	else
	{
		record >> cb;
		record >> cf;
	}
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:15,代码来源:FtCf.cpp

示例5: load

void FtNts::load(CFRecord& record)
{
	unsigned short ft, cb;
	record >> ft >> cb;

	if ( ft != 0x000d && cb != 0x0016)
	{
		record.RollRdPtrBack(4);
		return;
	}
	fExist = true;

	_GUID_ guid_num;
	record >> guid_num >> fSharedNote;
	
	guid = STR::guid2bstr(guid_num);
	
	record.skipNunBytes(4);
}
开发者ID:ONLYOFFICE,项目名称:core,代码行数:19,代码来源:FtNts.cpp

示例6: load

void FtSbs::load(CFRecord& record)
{
	unsigned short ft, cb;
	record >> ft >> cb;

	if ( ft != 0x000c && cb != 0x0014)
	{
		record.RollRdPtrBack(4);
		return;
	}
	fExist = true;

	record.skipNunBytes(4); // unused1

	unsigned short flags;

	record >> iVal >> iMin >> iMax >> dInc >> dPage >> fHoriz >> dxScroll >> flags;

	fDraw			= GETBIT(flags, 0);
	fDrawSliderOnly = GETBIT(flags, 1);
	fTrackElevator	= GETBIT(flags, 2);
	fNo3d			= GETBIT(flags, 3);
}
开发者ID:ShockwaveNN,项目名称:core,代码行数:23,代码来源:FtSbs.cpp


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