More precisely, if
{@code byte[] bytes = s.toByteArray();}
then {@code bytes.length == (s.length()+7)/8} and
{@code s.get(n) == ((bytes[n/8] & (1<<(n%8))) != 0)}
for all {@code n < 8 * bytes.length}.
@return a byte array containing a little-endian representationof all the bits in this bit set
@since 1.7
|
|
|
|
|
|
|
|
|
|
|
|
|
|