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