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

GetUInt32() public method

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

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

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

				return ret;
			}