wowlib 0.0.0
Read & write World of Warcraft client files — a C++26 core
Loading...
Searching...
No Matches
wowlib::formats::SelfSerializing Concept Reference

A member type that owns its chunk-payload encoding: the serializer hands it the raw payload on read and the output buffer on write (StringBlock, ChunkBlob). More...

#include <wowlib/formats/common/chunked_file.hpp>

Concept definition

template<typename T>
concept SelfSerializing = requires(T& value,
const T& constant,
std::span<const std::byte> payload,
FileBuffer& out) {
{ value.read(payload) } -> std::same_as<Result<void>>; { constant.write(out) } -> std::same_as<Result<void>>; {
constant.empty()
} -> std::convertible_to<bool>;
}
A member type that owns its chunk-payload encoding: the serializer hands it the raw payload on read a...
std::vector< std::byte > FileBuffer
Owning byte buffer for file contents read out of a client storage.
Definition buffer.hpp:16

Detailed Description

A member type that owns its chunk-payload encoding: the serializer hands it the raw payload on read and the output buffer on write (StringBlock, ChunkBlob).

Definition at line 223 of file chunked_file.hpp.