BigInteger.toByteArray
Class Overview | Class Members |
This Package |
All Packages
public byte[] toByteArray()
Description
Returns the two's-complement representation of this number. The array
is big-endian (i.e., the most significant byte is in the [0] position).
The array contains the minimum number of bytes required to represent
the number (ceil((this.bitLength() + 1)/8)). (This representation is
compatible with the (byte[]) constructor.)