From 0d12292412e1fee2b5bb9b886a0bec778c79ae12 Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sun, 26 Apr 2020 21:29:48 +0200 Subject: [PATCH] Rename ReadBitsInt -> *Be, deprecate ReadBitsInt --- KaitaiStream.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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) {