MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/PositionBasedDynamics / encode

Method encode

extern/md5/md5.cpp:437–447  ·  view source on GitHub ↗

Encodes input (UINT4) into output (unsigned char). Assumes len is a multiple of 4.

Source from the content-addressed store, hash-verified

435// Encodes input (UINT4) into output (unsigned char). Assumes len is
436// a multiple of 4.
437void MD5::encode (uint1 *output, uint4 *input, uint4 len) {
438
439 unsigned int i, j;
440
441 for (i = 0, j = 0; j < len; i++, j += 4) {
442 output[j] = (uint1) (input[i] & 0xff);
443 output[j+1] = (uint1) ((input[i] >> 8) & 0xff);
444 output[j+2] = (uint1) ((input[i] >> 16) & 0xff);
445 output[j+3] = (uint1) ((input[i] >> 24) & 0xff);
446 }
447}
448
449
450

Callers 1

get_and_replaceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected