Click or drag to resize
BinaryInputReadInt 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#
public int ReadInt(
	int r
)

Parameters

r
Type: SystemInt32
number of bits to read.

Return Value

Type: Int32
the next r bits of data from standard input as a int
Exceptions
ExceptionCondition
ArgumentExceptionif there are fewer than r bits available on standard input
ArgumentExceptionunless 1 <= r <= 32
See Also