static public Int64FromBE ( byte data, int index ) : long | ||
data | byte | |
index | int | |
return | long |
static public unsafe long Int64FromBE (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;
fixed (byte *src = &data[index]){
PutBytesBE ((byte *) &ret, src, 8);
}
return ret;
}