MCPcopy Create free account
hub / github.com/F-Stack/f-stack / MEM_writeLE16

Function MEM_writeLE16

freebsd/contrib/zstd/lib/common/mem.h:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298MEM_STATIC void MEM_writeLE16(void* memPtr, U16 val)
299{
300 if (MEM_isLittleEndian()) {
301 MEM_write16(memPtr, val);
302 } else {
303 BYTE* p = (BYTE*)memPtr;
304 p[0] = (BYTE)val;
305 p[1] = (BYTE)(val>>8);
306 }
307}
308
309MEM_STATIC U32 MEM_readLE24(const void* memPtr)
310{

Callers 9

MEM_writeLE24Function · 0.70
HUF_fillDTableX2Level2Function · 0.50
HUF_fillDTableX2Function · 0.50
ZSTD_noCompressLiteralsFunction · 0.50
ZSTD_writeFrameHeaderFunction · 0.50

Calls 2

MEM_isLittleEndianFunction · 0.70
MEM_write16Function · 0.70

Tested by

no test coverage detected