MCPcopy Create free account
hub / github.com/Tencent/libpag / GetLE16

Function GetLE16

src/codec/utils/WebpDecoder.cpp:26–28  ·  view source on GitHub ↗

Read 16, 24 or 32 bits stored in little-endian order.

Source from the content-addressed store, hash-verified

24
25// Read 16, 24 or 32 bits stored in little-endian order.
26static WEBP_INLINE int GetLE16(const uint8_t* const data) {
27 return (int)(data[0] << 0) | (data[1] << 8);
28}
29
30static WEBP_INLINE int GetLE24(const uint8_t* const data) {
31 return GetLE16(data) | (data[2] << 16);

Callers 2

GetLE24Function · 0.85
GetLE32Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected