From 4fa7e1605071170f0120e5791c736b0f08e9115c Mon Sep 17 00:00:00 2001 From: Petr Pucil Date: Sat, 3 Oct 2020 17:52:06 +0200 Subject: [PATCH] Add summary of ReadBitsInt{Be,Le}() methods --- KaitaiStream.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/KaitaiStream.cs b/KaitaiStream.cs index 936dd81..8158b4e 100644 --- a/KaitaiStream.cs +++ b/KaitaiStream.cs @@ -287,6 +287,10 @@ namespace Kaitai BitsLeft = 0; } + /// + /// Read a n-bit integer in a big-endian manner from the stream + /// + /// public ulong ReadBitsIntBe(int n) { int bitsNeeded = n - BitsLeft; @@ -324,7 +328,10 @@ namespace Kaitai return ReadBitsIntBe(n); } - //Method ported from algorithm specified @ issue#155 + /// + /// Read a n-bit integer in a little-endian manner from the stream + /// + /// public ulong ReadBitsIntLe(int n) { int bitsNeeded = n - BitsLeft;