Searched refs:binarray (Results 1 – 4 of 4) sorted by relevance
171 function binb2hex(binarray) argument175 for(var i = 0; i < binarray.length * 4; i++)177 str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) +178 hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF);186 function binb2b64(binarray) argument190 for(var i = 0; i < binarray.length * 4; i += 3)192 var triplet = (((binarray[i >> 2] >> 8 * (3 - i %4)) & 0xFF) << 16)193 | (((binarray[i+1 >> 2] >> 8 * (3 - (i+1)%4)) & 0xFF) << 8 )194 | ((binarray[i+2 >> 2] >> 8 * (3 - (i+2)%4)) & 0xFF);197 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
225 function binl2hex(binarray) argument229 for(var i = 0; i < binarray.length * 4; i++)231 str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +232 hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);240 function binl2b64(binarray) argument244 for(var i = 0; i < binarray.length * 4; i += 3)246 var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)247 | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )248 | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);251 if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;