add helper method to generate same crc32 results as php and boost::crc_32_type