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

GetUInt64() public method

public GetUInt64 ( byte data, int index ) : ulong
data byte
index int
return ulong
			public override ulong GetUInt64 (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");

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

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

				return ret;
			}