source/Endian.cpp
int64_t Endian::NetworkToHost( const int64_t networkInt, const uint8_t length ) {
	int64_t result = 0;

	switch ( length ) {
	case 2:
		result = ntohs( ( uint16_t )networkInt );
		break;
	case 4:
		result = ntohl( ( uint32_t )networkInt );
		break;
	case 8:
		result = ntohll( networkInt );
		break;
	default:
		result = networkInt;
	}

	return result;
}
/*
====================
Endian::NetworkToHost

	Converts a network-order byte to the host's order
====================
*/
:NetworkToHost
Converts a network-order byte to the host's order
: NetworkToHost Converts a network - order byte to the host ' s order
int64_t Endian::NetworkToHost( const int64_t networkInt, const uint8_t length ) {
	int64_t result = 0;
	switch ( length ) {
	case 2:
		result = ntohs( ( uint16_t )networkInt );
		break;
	case 4:
		result = ntohl( ( uint32_t )networkInt );
		break;
	case 8:
		result = ntohll( networkInt );
		break;
	default:
		result = networkInt;
	}
	return result;
}
int64_t Endian :: NetworkToHost ( const int64_t networkInt , const uint8_t length ) { int64_t result = 0 ; switch ( length ) { case 2 : result = ntohs ( ( uint16_t ) networkInt ) ; break ; case 4 : result = ntohl ( ( uint32_t ) networkInt ) ; break ; case 8 : result = ntohll ( networkInt ) ; break ; default : result = networkInt ; } return result ; }
Endian::NetworkToHost
Converts a network-order byte to the host's order
Endian :: NetworkToHost Converts a network - order byte to the host ' s order