simple_read_from_buffer