Algs4Net Class Library Documentation
Algs4Net Class Library Documentation
Algs4Net
BinaryInput Class
BinaryInput Methods
ReadInt Method
ReadInt Method
ReadInt Method (Int32)
BinaryInput
ReadInt Method (Int32)
Reads the next r bits from standard input and return as an r-bit int.
Namespace:
Algs4Net
Assembly:
Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
Copy
public
int
ReadInt
(
int
r
)
Parameters
r
Type:
System
Int32
number of bits to read.
Return Value
Type:
Int32
the next r bits of data from standard input as a
int
Exceptions
Exception
Condition
ArgumentException
if there are fewer than r bits available on standard input
ArgumentException
unless 1 <= r <= 32
See Also
Reference
BinaryInput Class
ReadInt Overload
Algs4Net Namespace