/** * Decodes the first four bytes of array <var>fourBytes</var> and returns * an array up to three bytes long with the decoded values. * * @param fourBytes * the array with Base64 content * @return array with decoded values * @since 1.3 */ private static byte[] decode4to3(byte[] fourBytes) { byte[] outBuff1 = new byte[3]; int count = decode4to3(fourBytes, 0, outBuff1, 0); byte[] outBuff2 = new byte[count]; for (int i = 0; i < count; i++) outBuff2[i] = outBuff1[i]; return outBuff2; }
b4[b4Posn++] = sbiCrop; if (b4Posn > 3) { outBuffPosn += decode4to3(b4, 0, outBuff, outBuffPosn); b4Posn = 0;