rewite read/pre_read std::string function version for easy_ring_buf.h