spudplate
Template scaffolding compiler for spudlang .spud files
Loading...
Searching...
No Matches
spudplate::BinaryDeserializeError Class Reference

Raised when the byte stream cannot be decoded. More...

#include <binary_serializer.h>

Inheritance diagram for spudplate::BinaryDeserializeError:

Public Member Functions

 BinaryDeserializeError (std::string message, std::size_t offset)
 Construct with a message and the byte offset where decoding failed.
 
std::size_t offset () const noexcept
 Byte offset within the decoded buffer where the failure occurred.
 

Detailed Description

Raised when the byte stream cannot be decoded.

Carries the byte offset at which decoding gave up so a hex-dumped payload can be inspected at the right location.