15#include "AEOFException.h"
16#include <AUI/Traits/values.h>
40 virtual size_t read(
char* dst,
size_t size) = 0;
51 size_t read(std::span<std::byte> destination) {
52 return read((
char*)destination.data(), destination.size());
67 char* end = dst + size;
68 while (begin != end) {
69 size_t r =
read(begin, end - begin);
98#include <AUI/Traits/serializable.h>
102 return aui::deserialize<T>(*
this);
107 aui::deserialize<T>(*
this, dst);
113 aui::deserialize<T>(*
this, dst);
Thrown when stream has reached end (end of file).
Definition AEOFException.h:20
Definition IOutputStream.h:18