:github_url: https://github.com/nyx-org/gaia .. _program_listing_file_lib_stream.hpp: Program Listing for File stream.hpp =================================== |exhale_lsh| :ref:`Return to documentation for file ` (``lib/stream.hpp``) .. |exhale_lsh| unicode:: U+021B0 .. UPWARDS ARROW WITH TIP LEFTWARDS .. code-block:: cpp /* SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include #include namespace Gaia { struct Stream { enum class Whence { CURRENT, SET, END, }; virtual Result write(void *buf, size_t size) = 0; virtual Result read(void *buf, size_t size) = 0; virtual Result seek(off_t offset, Whence whence) = 0; }; } // namespace Gaia