Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
Haio::Codecs::Detectable Concept Reference

#include <haio_codec.hpp>

Concept definition

template<Format F, Color P>
concept Detectable = requires (Bytes d) { { Detect<F, P>(d) } -> std::same_as<bool>; }
bool Detect(Bytes)=delete
std::span< const uint8_t > Bytes

Detailed Description

can these bytes be recognised as this pair, asked of the pair rather than answered by hand.

Definition at line 217 of file haio_codec.hpp.