G
Guest
I am woking on a base64 encoder and I am looking for some design help. I
have a woking model but would like some input on the design. I currently
read 3 bytes from a binary stream with each byte place in a seperate int32
var. Bytes are shifted to the left 0 8 or 16 places then the 3 vars are
"or"ed together t make a stream of bits. I then extract each 6 bit set
using a mask into a new int32 then shift them to the right to the fist byte
position. This seems to work OK but I am looking for other ideas to implment
this functionality.
have a woking model but would like some input on the design. I currently
read 3 bytes from a binary stream with each byte place in a seperate int32
var. Bytes are shifted to the left 0 8 or 16 places then the 3 vars are
"or"ed together t make a stream of bits. I then extract each 6 bit set
using a mask into a new int32 then shift them to the right to the fist byte
position. This seems to work OK but I am looking for other ideas to implment
this functionality.