b17056cb93
The previous implementation using std::copy() resulted in differences between the in-memory and on-disk representations. With the updated implementation, we get the same contents. Change-Id: Iadfae3cd7f7ba99538da2ac4f11f30f5a78260d8