internal static uint BE_To_UInt32(byte[] bs) { uint n = (uint)bs[0] << 24; n |= (uint)bs[1] << 16; n |= (uint)bs[2] << 8; n |= (uint)bs[3]; return n; }