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


C++ TResourceReader::ReadHBufC16L方法代码示例

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


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

示例1: GetTitleL

// ---------------------------------------------------------
// CNSmlDsProvisioningAdapter::GetTitleL
// ---------------------------------------------------------
void CNSmlDsProvisioningAdapter::GetTitleL()
	{
	if( iTitle == 0 )
		{
		RFs	fs;
		User::LeaveIfError( fs.Connect() );
		CleanupClosePushL( fs );

		TFileName fileName;
		TParse parse;
		parse.Set( KNSmlDsPovisioningDirAndResource, &KDC_RESOURCE_FILES_DIR, NULL );
		fileName = parse.FullName();

		RResourceFile resourceFile;
		BaflUtils::NearestLanguageFile( fs, fileName );
		resourceFile.OpenL( fs, fileName );
		CleanupClosePushL( resourceFile );

		HBufC8* dataBuffer = resourceFile.AllocReadLC( R_SYNC_PROVISIONING_TITLE );
			
		TResourceReader reader;
		reader.SetBuffer( dataBuffer ); 
		iTitle = reader.ReadHBufC16L(); 
		CleanupStack::PopAndDestroy( 3 ); //fs, resourcefile, databuffer
		}
	}
开发者ID:kuailexs,项目名称:symbiandump-mw3,代码行数:29,代码来源:NSmlDsProvisioningAdapter.cpp

示例2: ConstructL

				// Complete the construction of the 
				// CResData object using the supplied
				// reource reader representing the resource data.
				// The structure of the data is assumed to be
				// defined by the resource struct DATA in "ReadData.rh"
void CResData::ConstructL(TResourceReader& aReader)
	{
				// Interpret next bytes as a TInt16
	iWrd   = aReader.ReadInt16();
			
				// Interpret next bytes as a TInt16
	iFlags = aReader.ReadInt16();
					
				// Interpret next bytes as a TInt32
	iLng   = aReader.ReadInt32();

	iTxt	= aReader.ReadTPtrC();
				// Interpret the next byte as the length
				// of text. The text itself follows
				// this byte.
	iLtxt  = aReader.ReadHBufC16L(); 
				// Interpret the next byte as a TInt8
	iByt   = aReader.ReadInt8();
	
 				// Interpret next bytes as a TReal
	iDbl   = aReader.ReadReal64();
			
	}
开发者ID:huellif,项目名称:symbian-example,代码行数:28,代码来源:ReadData.cpp

示例3: ConstructFromResourceL

// ---------------------------------------------------------------------------
// CLangName::ConstructFromResourceL()
// ---------------------------------------------------------------------------
//
void CLangName::ConstructFromResourceL( TResourceReader& aReader )
    {
    iId = static_cast< TLanguage >( aReader.ReadInt16() );
    iName = aReader.ReadHBufC16L();
    }
开发者ID:cdaffara,项目名称:symbiandump-mw1,代码行数:9,代码来源:SisxUILangName.cpp


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