equal
deleted
inserted
replaced
21 |
21 |
22 #ifndef SL_FAT_CACHE_INL |
22 #ifndef SL_FAT_CACHE_INL |
23 #define SL_FAT_CACHE_INL |
23 #define SL_FAT_CACHE_INL |
24 |
24 |
25 |
25 |
26 //----------------------------------------------------------------------------- |
|
27 |
|
28 /** clear all bits */ |
|
29 void T32Bits::Clear() |
|
30 { |
|
31 iData = 0; |
|
32 } |
|
33 |
|
34 /** @return non-0 if at least one of 32 bits is set to '1' */ |
|
35 TBool T32Bits::HasBitsSet() const |
|
36 { |
|
37 return iData; |
|
38 } |
|
39 |
|
40 /** sets bit number "aIndex" to '1' */ |
|
41 void T32Bits::SetBit(TUint32 aIndex) |
|
42 { |
|
43 ASSERT(aIndex < 32); |
|
44 iData |= (1<<aIndex); |
|
45 } |
|
46 |
|
47 /** |
|
48 Get value of the bit number "aIndex". |
|
49 @return 0 if the bit aIndex is '0' non-zero otherwise |
|
50 */ |
|
51 TBool T32Bits::operator[](TUint32 aIndex) const |
|
52 { |
|
53 ASSERT(aIndex < 32); |
|
54 return (iData & (1<<aIndex)); |
|
55 } |
|
56 |
26 |
57 |
27 |
58 //----------------------------------------------------------------------------- |
28 //----------------------------------------------------------------------------- |
59 |
29 |
60 TUint32 CFatCacheBase::FatStartPos() const |
30 TUint32 CFatCacheBase::FatStartPos() const |