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


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

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


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

示例1: writeFields

void Row::writeFields(CFRecord& record)
{
	if(1 == in_block_position)
	{
		record.registerDelayedFilePointerSource(rt_DBCell); // For DBCell::dbRtrw 
	}

	record << rw << colMic << colMac << miyRw;
	record.reserveNunBytes(4); // reserved / unused
	unsigned short flags = 0x0100;
	SETBITS(flags, 0, 2, iOutLevel);
	SETBIT(flags, 4, fCollapsed);
	SETBIT(flags, 5, fDyZero);
	SETBIT(flags, 6, fUnsynced);
	SETBIT(flags, 7, fGhostDirty);
	record << flags;

	flags = 0;
	SETBITS(flags, 0, 11, ixfe_val);
	SETBIT(flags, 12, fExAsc);
	SETBIT(flags, 13, fExDes);
	SETBIT(flags, 14, fPhonetic);
	record << flags;

	if(1 == in_block_position)
	{
		record.registerDelayedFilePointerAndOffsetSource(record.getDataSize() + sizeof(unsigned short)/*size_short*/ + sizeof(CFRecordType::TypeId), rt_Blank); // For CELL container. All Cell containers will listen for rt_Blank
	}
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:29,代码来源:Row.cpp

示例2: store

void PictFmlaEmbedInfo::store(CFRecord& record)
{
	unsigned char ttb = 0x03; // reserved
	record << ttb;

	unsigned short cbClass = static_cast<unsigned char>(strClass.getSize());
	record << cbClass;
	record.reserveNunBytes(1); // reserved

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

示例3: store

void FtGboData::store(CFRecord& record)
{
	unsigned short ft = 0x000F; // reserved
	unsigned short cb = 0x0006; // reserved
	record << ft << cb;

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

示例4: store

void LbsDropData::store(CFRecord& record)
{
	unsigned short flags = 0;
	SETBITS(flags, 0, 1, wStyle);
	SETBIT(flags, 3, fFiltered);

	record << flags << cLine << dxMin << str;

	if(0 != (str.getStructSize() & 1))
	{
		record.reserveNunBytes(1); // padding
	}
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:13,代码来源:LbsDropData.cpp

示例5: store

void CFMultistate::store(CFRecord& record)
{
	record.reserveNunBytes(2); // unused
	record.reserveNunBytes(1); // reserved
	record << cStates << iIconSet;
	unsigned char flags = 0;
	SETBIT(flags, 0, fIconOnly);
	SETBIT(flags, 2, fReverse);
	record << flags;

	for(std::vector<CFMStateItemPtr>::iterator it = rgStates.begin(), itEnd = rgStates.end(); it != itEnd; ++it)
	{
		(*it)->store(record);
	}
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:15,代码来源:CFMultistate.cpp

示例6:

void PtgAreaErr3d::storeFields(CFRecord& record)
{
	record << ixti;
	record.reserveNunBytes(8); // unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:5,代码来源:PtgAreaErr3d.cpp

示例7: storeFields

void PtgElfColSV::storeFields(CFRecord& record)
{
	record.reserveNunBytes(4); // unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:4,代码来源:PtgElfColSV.cpp

示例8: storeFields

void PtgAttrSpaceSemi::storeFields(CFRecord& record)
{
	record.reserveNunBytes(2); // I do not use it, but the data present
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:4,代码来源:PtgAttrSpaceSemi.cpp

示例9: writeFields

void UserSViewEnd::writeFields(CFRecord& record)
{
	record.reserveNunBytes(2, static_cast<unsigned short>(1)); // reserved
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:4,代码来源:UserSViewEnd.cpp

示例10: store

void SerErr::store(CFRecord& record)
{
    record.storeAnyData(fixed_type);
	record << err;
	record.reserveNunBytes(7); // reserved/unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:6,代码来源:SerErr.cpp

示例11: storeFields

void PtgElfRadicalS::storeFields(CFRecord& record)
{
	record.reserveNunBytes(4); // unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:4,代码来源:PtgElfRadicalS.cpp

示例12: storeFields

void PtgMemErr::storeFields(CFRecord& record)
{
	record << err;
	record.reserveNunBytes(3); // unused
	record << cce;
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:6,代码来源:PtgMemErr.cpp

示例13: writeFields

void AxisParent::writeFields(CFRecord& record)
{
	record << iax;
	record.reserveNunBytes(16);// unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:5,代码来源:AxisParent.cpp

示例14: storeFields

void PtgAttrSemi::storeFields(CFRecord& record)
{
	record.reserveNunBytes(2); // unused
}
开发者ID:alexandervnuchkov,项目名称:core,代码行数:4,代码来源:PtgAttrSemi.cpp


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