本文整理汇总了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);
}
}
示例2: load
void FtMacro::load(CFRecord& record)
{
short ft;
record >> ft;
if (ft != 0x0004)
{
record.RollRdPtrBack(2);
return;
}
fExist = true;
fmla.load(record);
}
示例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;
}
示例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;
}
}
示例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);
}
示例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);
}