move memory_read_from_buffer() from fs.h to string.h