mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Fixed the TypeLoop class
This commit is contained in:
parent
36c9c8811d
commit
3a1058fe1f
@ -6,7 +6,7 @@
|
|||||||
* the Free Software Foundation; either version 2 of the License, or *
|
* the Free Software Foundation; either version 2 of the License, or *
|
||||||
* (at your option) any later version. *
|
* (at your option) any later version. *
|
||||||
* *
|
* *
|
||||||
* $Id: si.h 1.2 2003/12/13 10:42:17 kls Exp $
|
* $Id: si.h 1.3 2003/12/25 13:30:56 kls Exp $
|
||||||
* *
|
* *
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
@ -252,6 +252,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
template <class T> friend class StructureLoop;
|
template <class T> friend class StructureLoop;
|
||||||
friend class DescriptorLoop;
|
friend class DescriptorLoop;
|
||||||
|
template <class T> friend class TypeLoop;
|
||||||
int i;
|
int i;
|
||||||
};
|
};
|
||||||
protected:
|
protected:
|
||||||
@ -326,7 +327,7 @@ public:
|
|||||||
case 4:
|
case 4:
|
||||||
return data.FourBytes(index);
|
return data.FourBytes(index);
|
||||||
case 8:
|
case 8:
|
||||||
return (data.FourBytes(index) << 32) | data.FourBytes(index+4);
|
return (SixtyFourBit(data.FourBytes(index)) << 32) | data.FourBytes(index+4);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
T getNext(Iterator &it) const
|
T getNext(Iterator &it) const
|
||||||
@ -335,7 +336,7 @@ public:
|
|||||||
it.i+=sizeof(T);
|
it.i+=sizeof(T);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
bool hasNext() const { return getLength() > it.i; }
|
bool hasNext(Iterator &it) { return getLength() > it.i; }
|
||||||
};
|
};
|
||||||
|
|
||||||
class MHP_DescriptorLoop : public DescriptorLoop {
|
class MHP_DescriptorLoop : public DescriptorLoop {
|
||||||
|
Loading…
Reference in New Issue
Block a user