OK then, good info,
I know you can create any of this, but trying to be helpfull,
THIS.....
-manipulates 2 words to unpack (thats what VB calls it)
3 bytes from low array to 4 bytes of 6 bit each in
other array , needs indexing to move to next 3 and 4 locations
-The mid byte of the 24 bit Base64 is in W1 and W2 since it is used in destination byte 2 and 3
-only 140 bytes as is to do 24bit at a time.
Code:
arr1 var byte[8] 'base64 packed array or part of array
arr2 var byte[12] ' array to unpack into
w1 var word
w2 var word
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
w1= arr1[1]
w2= arr1[2]
w1= w1 >> 2
arr2[1]=w1.byte0 & 63
w1=w1 >> 2
arr2[2]= w1.byte1 & 63
arr2[4]=w2.byte1 & 63
w2=w2 << 2
arr2[3]= w2.byte0 & 63
Don
Bookmarks