** Convert a 2-byte or 4-byte big-endian integer into a native integer */
| 26414 | ** Convert a 2-byte or 4-byte big-endian integer into a native integer |
| 26415 | */ |
| 26416 | static unsigned int get2byteInt(unsigned char *a){ |
| 26417 | return (a[0]<<8) + a[1]; |
| 26418 | } |
| 26419 | static unsigned int get4byteInt(unsigned char *a){ |
| 26420 | return (a[0]<<24) + (a[1]<<16) + (a[2]<<8) + a[3]; |
| 26421 | } |
no outgoing calls
no test coverage detected