ArtemisComm.Packet.GetLength C# (CSharp) 메소드

GetLength() 정적인 개인적인 메소드

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