1 #ifndef jb_itch5_check_offset_hpp 2 #define jb_itch5_check_offset_hpp 24 template <
bool val
idate>
26 char const* msg, std::size_t
size, std::size_t offset, std::size_t n) {
32 char const* msg, std::size_t
size, std::size_t offset, std::size_t n);
49 #endif // jb_itch5_check_offset_hpp
void raise_validation_failed(char const *where, char const *what)
Convenience function to raise an exception upon a validation error.
void check_offset(char const *msg, std::size_t size, std::size_t offset, std::size_t n)
Verify that an offset and field length is valid (generic version).
void check_offset< true >(char const *msg, std::size_t size, std::size_t offset, std::size_t n)
A version of jb::itch5::check_offset<> that actually validates.
The top-level namespace for the JayBeams library.