private void EncodeAutolockMode(Byte[] buff, AutolockModeKind value) { buff[0] = (byte)((buff[0] & ~0x0c) | ((int)value & 0x0c)); }