Added data_buffer class that provides possibility to write into data_pointer