MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / writeUInt

Function writeUInt

Source/ThirdParty/tinyexr.h:3052–3059  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3050}
3051
3052static void writeUInt(char buf[4], unsigned int i) {
3053 unsigned char *b = (unsigned char *)buf;
3054
3055 b[0] = i;
3056 b[1] = i >> 8;
3057 b[2] = i >> 16;
3058 b[3] = i >> 24;
3059}
3060
3061static unsigned int readUInt(const char buf[4]) {
3062 const unsigned char *b = (const unsigned char *)buf;

Callers 1

hufCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected