internal static int GetLength(byte[] byteArray, int startIndex)
{
if (startIndex < int.MaxValue - 4)
{
int position = startIndex + 4;
return BitConverter.ToInt32(byteArray, position);
}
else
{
throw new ArgumentOutOfRangeException("startIndex");
}
}
//[ArtemisExcluded]