MCPcopy Create free account
hub / github.com/OpenPathGuidingLibrary/openpgl / writeUInt

Function writeUInt

third-party/tinyexr/tinyexr.h:2908–2915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2906}
2907
2908static void writeUInt(char buf[4], unsigned int i) {
2909 unsigned char *b = (unsigned char *)buf;
2910
2911 b[0] = i;
2912 b[1] = i >> 8;
2913 b[2] = i >> 16;
2914 b[3] = i >> 24;
2915}
2916
2917static unsigned int readUInt(const char buf[4]) {
2918 const unsigned char *b = (const unsigned char *)buf;

Callers 1

hufCompressFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected