Encodes up to the first three bytes of array threeBytes and returns a four-byte array in Base64 notation. The actual number of significant bytes in your array is given by numSigBytes . The array threeBytes needs only be as big as numSigBytes . Code can reuse
(byte[] b4, byte[] threeBytes, int numSigBytes)
| 1861 | * @since 1.5.1 |
| 1862 | */ |
| 1863 | private static byte[] encode3to4(byte[] b4, byte[] threeBytes, int numSigBytes) { |
| 1864 | encode3to4(threeBytes, 0, numSigBytes, b4, 0); |
| 1865 | return b4; |
| 1866 | } // end encode3to4 |
| 1867 | |
| 1868 | |
| 1869 | /** |
no outgoing calls
no test coverage detected