// SPDX-License-Identifier: BSD-2-Clause // author: Max Kellermann #include "Reader.hxx" #include void Reader::ReadFull(std::span dest) { const auto nbytes = Read(dest); if (nbytes < dest.size()) throw std::runtime_error{"Unexpected end of file"}; }