diff -r a41df078684a -r 4122176ea935 userlibandfileserver/fileserver/sfat32/sl_fatcache.inl --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/userlibandfileserver/fileserver/sfat32/sl_fatcache.inl Mon Dec 21 16:14:42 2009 +0000 @@ -0,0 +1,254 @@ +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies). +// All rights reserved. +// This component and the accompanying materials are made available +// under the terms of the License "Eclipse Public License v1.0" +// which accompanies this distribution, and is available +// at the URL "http://www.eclipse.org/legal/epl-v10.html". +// +// Initial Contributors: +// Nokia Corporation - initial contribution. +// +// Contributors: +// +// Description: +// f32\sfat\sl_fatcache.inl +// +// + +/** + @file +*/ + +#ifndef SL_FAT_CACHE_INL +#define SL_FAT_CACHE_INL + + +//----------------------------------------------------------------------------- + +/** clear all bits */ +void T32Bits::Clear() + { + iData = 0; + } + +/** @return non-0 if at least one of 32 bits is set to '1' */ +TBool T32Bits::HasBitsSet() const + { + return iData; + } + +/** sets bit number "aIndex" to '1' */ +void T32Bits::SetBit(TUint32 aIndex) + { + ASSERT(aIndex < 32); + iData |= (1<= iStartIndexInFAT && aFatIndex < iStartIndexInFAT+EntriesInPage()); + } + + +//--------------------------------------------------------------------------------------------------------------------------------- + + + + + + +#endif //SL_FAT_CACHE_INL + + + + + + + + + + + + + + + + + + + + + + +