** Convert a 2-byte or 4-byte big-endian integer into a native integer */
| 21294 | ** Convert a 2-byte or 4-byte big-endian integer into a native integer |
| 21295 | */ |
| 21296 | static unsigned int get2byteInt(unsigned char *a){ |
| 21297 | return (a[0]<<8) + a[1]; |
| 21298 | } |
| 21299 | static unsigned int get4byteInt(unsigned char *a){ |
| 21300 | return (a[0]<<24) + (a[1]<<16) + (a[2]<<8) + a[3]; |
| 21301 | } |
no outgoing calls
no test coverage detected