MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / read_4bytes

Function read_4bytes

parser/parse_sst.c:39–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static inline unsigned lower_4bytes( unsigned d ) { return d | 0x20202020; }
38static inline unsigned lower_3bytes( unsigned d ) { return d | 0x202020; }
39static inline unsigned read_4bytes( char *val ) {
40 return (*(val + 0) + (*(val + 1) << 8)
41 + (*(val + 2) << 16) + (*(val + 3) << 24));
42}
43static inline unsigned read_3bytes( char *val ) {
44 return (*(val + 0) + (*(val + 1) << 8) + (*(val + 2) << 16));
45}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected