BitConverter: ToInt32

ToInt32

Converts an array of bytes to a Long value.



 Public Function ToInt32(
	  ByRef Value ( ) As Byte,
	  ByVal StartIndex As Long ) As Long

Parameters

Value
[ByRef] Byte. The array of bytes used to create a Long from.
StartIndex
[ByVal] Long. The starting byte in the array to create a Long from.

Return Values

Long -  Long data-type representation of the 4 bytes used in the array.

Exceptions

ExceptionCondition
ArgumentExceptionStartIndex is greater than or equal to the length of Value minus 3, and is less than or equal to the length of Value minus 1.
ArgumentNullExceptionValue is uninitialized.
ArgumentOutOfRangeExceptionStartIndex is less than zero or greater than the length of Value minus 1.

See Also

Project CorLib Overview

Class BitConverter Overview