A
ali4ever4
well hi ther i have a strange question about bitmanuplation
if i have a set of bits such as 10110011
which can be any thing arrays of 1 and 0 or may be string or mostly
BitSet
is there is away to convert it to byte or may be to any other premitive
type such as int or char with the rest of the bits be zeros ??!!
for example if i have this stream of bits 00101 can i convert it to
integer with this bit representation
00000000 00000000 00000000 00000101
which equals to 5
hope i will find an answer to my question
and thanks very much in advance
if i have a set of bits such as 10110011
which can be any thing arrays of 1 and 0 or may be string or mostly
BitSet
is there is away to convert it to byte or may be to any other premitive
type such as int or char with the rest of the bits be zeros ??!!
for example if i have this stream of bits 00101 can i convert it to
integer with this bit representation
00000000 00000000 00000000 00000101
which equals to 5
hope i will find an answer to my question
and thanks very much in advance