Working directly with bits
843833Oct 23 2001 — edited Oct 24 2001I am working on a DNS tool. According to RFC 1035, communications with the DNS server are performed using bit streams.
I am working on some preliminary tests of a simple application. However, it would be very nice to use direct bit manipulation because several of the fields in a DNS query are single bit flags.
I have tried using byte primitives in arrays, however, due to signing, this has been problematic.
Frankly, I have not done a lot of bit math. Is their a good guide available or a means of directly manipulating bits? (I am fully willing to read. I just have not found anything significantto start with.)