MCPcopy Create free account
hub / github.com/BlueAndi/Pixelix / getValueInLE

Method getValueInLE

lib/DDPPlugin/src/DDPServer.cpp:263–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261 *****************************************************************************/
262
263uint16_t DDPServer::getValueInLE(uint16_t valueBE)
264{
265 const uint8_t* byteStream = reinterpret_cast<uint8_t*>(&valueBE);
266 uint16_t b0 = byteStream[0U];
267 uint16_t b1 = byteStream[1U];
268
269 return (b0 << 8U) | (b1 << 0U);
270}
271
272uint32_t DDPServer::getValueInLE(uint32_t valueBE)
273{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected