J
Jubz
I am writing an algorith that computes a CRC based on a polynomial
function. In its simplest form, the method receives a String of the bit
stream as the first parameter, and another String representing the
generator bits.
At some point, I need the divide the data bit stream as binary by the
generator bits and retain the remainder for use in the CRC computation.
So, what I'm looking for is a way to represent binary numbers in Java.
Is there a simple way (like how we represent hex using 0x prefix), and
what kinds of operators can be executed on these binary number? I'm
hoping a division or modulo is at least possible.
Thanks.
function. In its simplest form, the method receives a String of the bit
stream as the first parameter, and another String representing the
generator bits.
At some point, I need the divide the data bit stream as binary by the
generator bits and retain the remainder for use in the CRC computation.
So, what I'm looking for is a way to represent binary numbers in Java.
Is there a simple way (like how we represent hex using 0x prefix), and
what kinds of operators can be executed on these binary number? I'm
hoping a division or modulo is at least possible.
Thanks.