static private GetLength ( byte byteArray, int startIndex ) : int | ||
byteArray | byte | |
startIndex | int | |
return | int |
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]