简体   繁体   中英

bitwise operation class in Java

is there a class that makes bitwise operation easier ? I need some methods that reads into integer the "value" of bits givem their offset and length (in a 32/64 bits byte array).

I can use the bit manipulations available with java but I rather use a debugged class.

Take a look at BitSet . And here is a usage example that looks like it demonstrates code similar to what you need to do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM