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