Here is the usual java code
result = result & ~mask So you need a bitweise bitand (which is implemented) and a bitwise NOT (which is not implemented). Using bitxor just toggles the flags, but don't clear them. Am Montag, 19. Mai 2014 08:50:48 UTC+2 schrieb Thomas: > > Usuually it is easy to clear flags: > > flag = flag & ~mask; > > However, I miss the bitwise functions & and ~. > > I even thought about converting to a binary string and replace the > x.thposition by zero ad converting back to Integer. However, this is also not > possible quickly - no way to convert to binary string (not hex) and to > replace a character at position x. > > So, how can I clear a flag ? > -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/h2-database. For more options, visit https://groups.google.com/d/optout.
