Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Working directly with bits

843833Oct 23 2001 — edited Oct 24 2001
I 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.)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 21 2001
Added on Oct 23 2001
4 comments
114 views