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

	uint16_t num = *( uint16_t * )varptr;
	num = ( uint16_t )Endian::HostToNetworkUnsigned( num, size );

	memcpy( buffer, &num, size );

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

	Writes 2 bytes of varptr into the buffer
====================
*/
:WriteInt16
Writes 2 bytes of varptr into the buffer
: WriteInt16 Writes 2 bytes of varptr into the buffer
byteLen_t xiSocket::WriteInt16( char * const buffer, const void * const varptr ) {
	const byteLen_t size = sizeof( uint16_t );
	uint16_t num = *( uint16_t * )varptr;
	num = ( uint16_t )Endian::HostToNetworkUnsigned( num, size );
	memcpy( buffer, &num, size );
	return size;
}
byteLen_t xiSocket :: WriteInt16 ( char * const buffer , const void * const varptr ) { const byteLen_t size = sizeof ( uint16_t ) ; uint16_t num = * ( uint16_t * ) varptr ; num = ( uint16_t ) Endian :: HostToNetworkUnsigned ( num , size ) ; memcpy ( buffer , & num , size ) ; return size ; }
xiSocket::WriteInt16
Writes 2 bytes of varptr into the buffer
xiSocket :: WriteInt16 Writes 2 bytes of varptr into the buffer