System.Net.Http.HttpContent.StartsWith C# (CSharp) 메소드

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

static private StartsWith ( byte array, int length, byte value ) : int
array byte
length int
value byte
리턴 int
		static int StartsWith (byte[] array, int length, byte[] value)
		{
			if (length < value.Length)
				return 0;

			for (int i = 0; i < value.Length; ++i) {
				if (array [i] != value [i])
					return 0;
			}

			return value.Length;
		}