static uint32_t readWordFromNetworkByteOrderMemory()

in source/core_sntp_serializer.c [237:247]


static uint32_t readWordFromNetworkByteOrderMemory( const uint32_t * ptr )
{
    const uint8_t * pMemStartByte = ( const uint8_t * ) ptr;

    assert( ptr != NULL );

    return ( uint32_t ) ( ( ( uint32_t ) *( pMemStartByte ) << 24 ) |
                          ( 0x00FF0000U & ( ( uint32_t ) *( pMemStartByte + 1 ) << 16 ) ) |
                          ( 0x0000FF00U & ( ( uint32_t ) *( pMemStartByte + 2 ) << 8 ) ) |
                          ( ( uint32_t ) *( pMemStartByte + 3 ) ) );
}