Hello, I'm currently implementing an Erlang driver for Cassandra's binary protocol v2. Most of it is straightforward, but I came across this part in [4.1.4. QUERY]:
> <flags> is a [byte] whose bits define the options for this query and > in particular influence what the remainder of the message contains. > A flag is set if the bit corresponding to its `mask` is set. Supported > flags are, given there mask: > 0x01 : ... > 0x02 : ... > 0x03 : ... > 0x04 : ... Does that mean that the 0x01 flag is set if `1 << 0` is set? and 0x03 is set if `1 << 2` is set? Thanks in advance Mathieu