Using integer definition of stdint.h instead of primitive type of c++ to achieve cross-platform.