MCPcopy Create free account
hub / github.com/creatale/node-dv / byteConvert3to4

Function byteConvert3to4

deps/leptonica/src/encoding.c:295–304  ·  view source on GitHub ↗

! * \brief byteConvert3to4() */

Source from the content-addressed store, hash-verified

293 * \brief byteConvert3to4()
294 */
295static void
296byteConvert3to4(l_uint8 *in3,
297 l_uint8 *out4)
298{
299 out4[0] = in3[0] >> 2;
300 out4[1] = ((in3[0] & 0x03) << 4) | (in3[1] >> 4);
301 out4[2] = ((in3[1] & 0x0f) << 2) | (in3[2] >> 6);
302 out4[3] = in3[2] & 0x3f;
303 return;
304}
305
306/*!
307 * \brief byteConvert4to3()

Callers 1

encodeBase64Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected