Rename ReadBitsInt -> *Be, deprecate ReadBitsInt
This commit is contained in:
parent
d62f34fcad
commit
0d12292412
|
@ -287,7 +287,7 @@ namespace Kaitai
|
||||||
BitsLeft = 0;
|
BitsLeft = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ulong ReadBitsInt(int n)
|
public ulong ReadBitsIntBe(int n)
|
||||||
{
|
{
|
||||||
int bitsNeeded = n - BitsLeft;
|
int bitsNeeded = n - BitsLeft;
|
||||||
if (bitsNeeded > 0)
|
if (bitsNeeded > 0)
|
||||||
|
@ -320,6 +320,12 @@ namespace Kaitai
|
||||||
return res;
|
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
|
//Method ported from algorithm specified @ issue#155
|
||||||
public ulong ReadBitsIntLe(int n)
|
public ulong ReadBitsIntLe(int n)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue