Pixie
Loading...
Searching...
No Matches
pixie::file_archive_detail::Utf8Validator Class Reference

Incrementally validate a byte stream as UTF-8. More...

#include <file_archive.h>

Public Member Functions

 Utf8Validator (bool reject_nul)
 Construct a validator, optionally rejecting embedded NUL bytes.
 
void Consume (std::span< const std::byte > bytes)
 Consume the next contiguous chunk of the byte stream.
 
bool valid () const
 Return whether all consumed bytes form complete valid UTF-8.
 

Detailed Description

Incrementally validate a byte stream as UTF-8.


The documentation for this class was generated from the following file: