Bug 1163667 - [2.1] Extend ByteReader interface with CanRead32(). r=jya

This commit is contained in:
Eugen Sawin 2015-10-07 22:30:54 +02:00 committed by Eugen Sawin
parent 2faf158f48
commit 0390a166fa

View File

@ -102,6 +102,8 @@ public:
return (uint32_t)ReadU24();
}
bool CanRead32() { return mRemaining >= 4; }
uint32_t ReadU32()
{
auto ptr = Read(4);