本文整理汇总了C++中CFileStream::WriteUShort方法的典型用法代码示例。如果您正苦于以下问题:C++ CFileStream::WriteUShort方法的具体用法?C++ CFileStream::WriteUShort怎么用?C++ CFileStream::WriteUShort使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CFileStream
的用法示例。
在下文中一共展示了CFileStream::WriteUShort方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Save
bool CThemeConfig::Save(CFileStream & file)
{
file.WriteUInt( m_nThemeID );
file.WriteUShort((unsigned short)m_strName.size());
file.WriteString(m_strName);
file.WriteUInt( m_nOpenTime );
file.WriteUInt( m_nEndTime );
file.WriteUShort((unsigned short)m_strThemeIcon.size());
file.WriteString(m_strThemeIcon);
file.WriteUShort((unsigned short)m_strThemeAtlas.size());
file.WriteString(m_strThemeAtlas);
file.WriteUShort((unsigned short)m_strSceneIcon.size());
file.WriteString(m_strSceneIcon);
file.WriteUShort((unsigned short)m_strSceneAtlas.size());
file.WriteString(m_strSceneAtlas);
file.WriteUInt( m_nStoryID );
return true;
}
示例2: SaveToFile
bool AuctionGoodsInfo::SaveToFile(CFileStream &file)
{
if (0 == m_uSerializeID || m_uAddPercent > 100 || !m_cGoodsInfo.SaveToFile(file))
return false;
file.WriteUShort(m_uSerializeID);
file.WriteUShort(m_uAddPercent);
file.WriteUInt(m_uMinAdd);
file.WriteFloat(m_fCountDown);
file.WriteUInt(m_uCurPrice);
file.WriteUInt(m_uRoleID);
file.WriteString2(m_strRoleName);
return true;
}
示例3: Save
bool ExpConfig::Save(CFileStream&file)
{
file.WriteUShort(m_nLev) ;
file.WriteInt(m_nExp) ;
return true ;
}