Change size_t to unsigned int

Changing  the data_length's type to unsigned int because
size_t has diferrent size depending of the platform