MCPcopy Create free account
hub / github.com/RenderKit/embree / writeUInt

Function writeUInt

tutorials/common/image/tinyexr.h:2982–2989  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2980}
2981
2982static void writeUInt(char buf[4], unsigned int i) {
2983 unsigned char *b = (unsigned char *)buf;
2984
2985 b[0] = i;
2986 b[1] = i >> 8;
2987 b[2] = i >> 16;
2988 b[3] = i >> 24;
2989}
2990
2991static unsigned int readUInt(const char buf[4]) {
2992 const unsigned char *b = (const unsigned char *)buf;

Callers 1

hufCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected