本文整理汇总了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);
}
}
示例2: load
void AddinUdf::load(CFRecord& record)
{
record.skipNunBytes(4); // reserved
record >> udfName;
unsigned short cb;
record >> cb;
record.skipNunBytes(cb); // unused
}
示例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);
}
示例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;
}
示例5:
void PtgRefErr3d::loadFields(CFRecord& record)
{
global_info = record.getGlobalWorkbookInfo();
record >> ixti;
record.skipNunBytes(4); // unused
}
示例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());
}
示例7: readFields
void RecalcId::readFields(CFRecord& record)
{
unsigned short rt;
record >> rt;
record.skipNunBytes(2); // reserved
record >> dwBuild;
}
示例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);
}
}
示例9: load
void DVParsedFormula::load(CFRecord& record)
{
unsigned short cce;
record >> cce;
record.skipNunBytes(2); // unused
rgce.load(record, cce);
}
示例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());
}
示例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());
}
示例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);
}
示例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());
}
示例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);
}
示例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));
}