private void EncodeDriveMode(Byte[] buff, DriveModeKind value) { buff[0] = (byte)((buff[0] & ~0x30) | ((int)value & 0x30)); }