Language
Edit

MathUtilities.BytesToInt(Byte[], Int32) Method

Definition

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.

Applies to