Symbian Base64 编码、解码的实现
2010-02-26 16:00:00 来源:WEB开发网核心提示:HBufC *enbuff16 = HBufC::NewLC( (*encodeBuf).Length() );enbuff16->Des().Copy( *encodeBuf );console->Write( enbuff16->Des() );console->Write( _L(&quo
HBufC *enbuff16 = HBufC::NewLC( (*encodeBuf).Length() );
enbuff16->Des().Copy( *encodeBuf );
console->Write( enbuff16->Des() );
console->Write( _L(" ") );
HBufC8* decodeBuf = Handler->Base64DecodeLC( ( *encodeBuf ) );
HBufC *debuff16 = HBufC::NewLC( (*decodeBuf).Length() );
debuff16->Des().Copy( *decodeBuf );
console->Write( debuff16->Des() );
console->Write( _L(" ") );
CleanupStack::PopAndDestroy(4);
更多精彩
赞助商链接