source/Socket.cpp
byteLen_t xiSocket::ReadInt32( const char * const buffer, void * const varptr ) {
	const byteLen_t size = sizeof( uint32_t );

	uint32_t num = *( uint32_t * )buffer;
	num = ( uint32_t )Endian::NetworkToHostUnsigned( num, size );

	memcpy( varptr, &num, size );

	return size;
}
/*
====================
xiSocket::ReadInt32

	Function for reading 4 bytes from a given buffer
	The bytes are stored in varptr
====================
*/
:ReadInt32
Function for reading 4 bytes from a given buffer
The bytes are stored in varptr
: ReadInt32 Function for reading 4 bytes from a given buffer The bytes are stored in varptr
byteLen_t xiSocket::ReadInt32( const char * const buffer, void * const varptr ) {
	const byteLen_t size = sizeof( uint32_t );
	uint32_t num = *( uint32_t * )buffer;
	num = ( uint32_t )Endian::NetworkToHostUnsigned( num, size );
	memcpy( varptr, &num, size );
	return size;
}
byteLen_t xiSocket :: ReadInt32 ( const char * const buffer , void * const varptr ) { const byteLen_t size = sizeof ( uint32_t ) ; uint32_t num = * ( uint32_t * ) buffer ; num = ( uint32_t ) Endian :: NetworkToHostUnsigned ( num , size ) ; memcpy ( varptr , & num , size ) ; return size ; }
xiSocket::ReadInt32
Function for reading 4 bytes from a given buffer
The bytes are stored in varptr
xiSocket :: ReadInt32 Function for reading 4 bytes from a given buffer The bytes are stored in varptr