In my computer, size_t is 64 bit type. Use boost::uint32_t