/* * Copyright (c) 2021, Jan de Visser * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace SQL { Row::Row(NonnullRefPtr table, Block::Index block_index) : Tuple(table->to_tuple_descriptor()) , m_table(move(table)) { set_block_index(block_index); } void Row::deserialize(Serializer& serializer) { Tuple::deserialize(serializer); m_next_block_index = serializer.deserialize(); } void Row::serialize(Serializer& serializer) const { Tuple::serialize(serializer); serializer.serialize(next_block_index()); } }