While string should be used for working with strings, I would like to know what structure you should use in C++ when working with blocks of data.
I'm asking this because it would be nicer to use one parameter instead of passing a char* data and size_t size (or a custom structure).