Rename ReadBitsInt -> *Be, deprecate ReadBitsInt

This commit is contained in:
Petr Pucil 2020-04-26 21:29:48 +02:00
parent d62f34fcad
commit 0d12292412
1 changed files with 7 additions and 1 deletions

View File

@ -287,7 +287,7 @@ namespace Kaitai
BitsLeft = 0;
}
public ulong ReadBitsInt(int n)
public ulong ReadBitsIntBe(int n)
{
int bitsNeeded = n - BitsLeft;
if (bitsNeeded > 0)
@ -320,6 +320,12 @@ namespace Kaitai
return res;
}
[Obsolete("This method is deprecated. Use ReadBitsIntBe instead.")]
public ulong ReadBitsInt(int n)
{
return ReadBitsIntBe(n);
}
//Method ported from algorithm specified @ issue#155
public ulong ReadBitsIntLe(int n)
{