/* * Copyright (c) 2021, Jan de Visser * * SPDX-License-Identifier: BSD-2-Clause */ #include #include namespace SQL { Row::Row(NonnullRefPtr table, u32 pointer) : Tuple(table->to_tuple_descriptor()) , m_table(move(table)) { set_pointer(pointer); } void Row::deserialize(Serializer& serializer) { Tuple::deserialize(serializer); m_next_pointer = serializer.deserialize(); } void Row::serialize(Serializer& serializer) const { Tuple::serialize(serializer); serializer.serialize(next_pointer()); } }