Mono.DataConverter.CopyConverter.GetInt64 C# (CSharp) Method

GetInt64() public method

public GetInt64 ( byte data, int index ) : long
data byte
index int
return long
			public override long GetInt64 (byte [] data, int index)
			{
				if (data == null)
					throw new ArgumentNullException ("data");
				if (data.Length - index < 8)
					throw new ArgumentException ("index");
				if (index < 0)
					throw new ArgumentException ("index");

				long ret;
				byte *b = (byte *)&ret;

				for (int i = 0; i < 8; i++)
					b [i] = data [index+i];

				return ret;
			}