mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1163667 - [2.1] Extend ByteReader interface with CanRead32(). r=jya
This commit is contained in:
parent
2faf158f48
commit
0390a166fa
@ -102,6 +102,8 @@ public:
|
||||
return (uint32_t)ReadU24();
|
||||
}
|
||||
|
||||
bool CanRead32() { return mRemaining >= 4; }
|
||||
|
||||
uint32_t ReadU32()
|
||||
{
|
||||
auto ptr = Read(4);
|
||||
|
Loading…
Reference in New Issue
Block a user