std: Add MemWriter.clear() to empty the underlying buffer.