Add summary of ReadBitsInt{Be,Le}() methods
This commit is contained in:
parent
1b66a9a85f
commit
4fa7e16050
|
@ -287,6 +287,10 @@ namespace Kaitai
|
||||||
BitsLeft = 0;
|
BitsLeft = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Read a n-bit integer in a big-endian manner from the stream
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public ulong ReadBitsIntBe(int n)
|
public ulong ReadBitsIntBe(int n)
|
||||||
{
|
{
|
||||||
int bitsNeeded = n - BitsLeft;
|
int bitsNeeded = n - BitsLeft;
|
||||||
|
@ -324,7 +328,10 @@ namespace Kaitai
|
||||||
return ReadBitsIntBe(n);
|
return ReadBitsIntBe(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Method ported from algorithm specified @ issue#155
|
/// <summary>
|
||||||
|
/// Read a n-bit integer in a little-endian manner from the stream
|
||||||
|
/// </summary>
|
||||||
|
/// <returns></returns>
|
||||||
public ulong ReadBitsIntLe(int n)
|
public ulong ReadBitsIntLe(int n)
|
||||||
{
|
{
|
||||||
int bitsNeeded = n - BitsLeft;
|
int bitsNeeded = n - BitsLeft;
|
||||||
|
|
Loading…
Reference in New Issue