MCPcopy Create free account
hub / github.com/clementgallet/libTAS / LZ4_readLE16

Function LZ4_readLE16

src/external/lz4.cpp:340–348  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

338
339
340static U16 LZ4_readLE16(const void* memPtr)
341{
342 if (LZ4_isLittleEndian()) {
343 return LZ4_read16(memPtr);
344 } else {
345 const BYTE* p = (const BYTE*)memPtr;
346 return (U16)((U16)p[0] + (p[1]<<8));
347 }
348}
349
350static void LZ4_writeLE16(void* memPtr, U16 value)
351{

Callers 1

lz4.cppFile · 0.85

Calls 2

LZ4_isLittleEndianFunction · 0.85
LZ4_read16Function · 0.85

Tested by

no test coverage detected