kernel/eka/common/array.cpp
branchRCL_3
changeset 198 2bb754abd467
parent 0 a41df078684a
equal deleted inserted replaced
147:bbf8bed59bcb 198:2bb754abd467
   661 EXPORT_C TInt RArrayBase::Count() const
   661 EXPORT_C TInt RArrayBase::Count() const
   662 	{
   662 	{
   663 	return iCount;
   663 	return iCount;
   664 	}
   664 	}
   665 
   665 
       
   666 EXPORT_C void RArrayBase::SetKeyOffset(TInt aKeyOffset)
       
   667 	{
       
   668 	__ASSERT_ALWAYS(TUint(aKeyOffset)<TUint(iEntrySize) && (aKeyOffset&3)==0, Panic(EBadArrayKeyOffset));
       
   669 	iKeyOffset = aKeyOffset;
       
   670 	}
       
   671 
   666 #ifndef __ARRAY_MACHINE_CODED__
   672 #ifndef __ARRAY_MACHINE_CODED__
   667 EXPORT_C TAny* RArrayBase::At(TInt anIndex) const
   673 EXPORT_C TAny* RArrayBase::At(TInt anIndex) const
   668 	{
   674 	{
   669 	__ASSERT_ALWAYS((anIndex>=0 && anIndex<iCount),Panic(EBadArrayIndex));
   675 	__ASSERT_ALWAYS((anIndex>=0 && anIndex<iCount),Panic(EBadArrayIndex));
   670 	return (((TUint8*)iEntries)+anIndex*iEntrySize);
   676 	return (((TUint8*)iEntries)+anIndex*iEntrySize);