MathUtilities.BytesToInt(Byte[], Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts an array of four bytes to an integer.
public static int BytesToInt(byte[] bytes, int offset = 0);
static member BytesToInt : byte[] * int -> int
Public Shared Function BytesToInt (bytes As Byte(), Optional offset As Integer = 0) As Integer
Parameters
- bytes
- Byte[]
Array of bytes (must be at least four bytes in length).
- offset
- Int32
Offset within the array at which to begin reading.
Returns
Integer value created the provided bytes.