static bool Is7Bit(byte[] bytes) { foreach (byte b in bytes) if ((b & ~0x7f) != 0) return false; return true; }