diff --git a/KaitaiStream.cs b/KaitaiStream.cs index 626b485..52a3782 100644 --- a/KaitaiStream.cs +++ b/KaitaiStream.cs @@ -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) {