MCPcopy Create free account
hub / github.com/SatDump/SatDump / shift_array_left

Function shift_array_left

src-core/common/repack.cpp:237–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

235}
236
237void shift_array_left(uint8_t *in, int byte_length, int shift, uint8_t *out)
238{
239 for (int i = 0; i < byte_length; i++)
240 out[i] = in[i + 0] << shift | in[i + 1] >> (8 - shift);
241}

Callers 6

processMethod · 0.85
workMethod · 0.85
process_scanMethod · 0.85
workMethod · 0.85
initMethod · 0.85
processMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected