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

GetDouble() public method

public GetDouble ( byte data, int index ) : double
data byte
index int
return double
			public override double GetDouble (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");
				double ret;
				byte *b = (byte *)&ret;

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

				return ret;
			}