2 #ifndef SSP21_SEQBYTEFIELD_H 3 #define SSP21_SEQBYTEFIELD_H 5 #include "ser4cpp/serialization/BigEndian.h" 7 #include "ssp21/util/SequenceTypes.h" 9 #include "ssp21/crypto/gen/FormatError.h" 10 #include "ssp21/crypto/gen/ParseError.h" 12 #include "ssp21/crypto/IMessagePrinter.h" 13 #include "ssp21/crypto/IntegerField.h" 15 #include "ssp21/crypto/VLength.h" 26 return VLength::size_in_bytes(this->length()) + this->length();
33 seq32_t::operator=(other);
43 const auto err = VLength::read(length, input);
44 if (any(err))
return err;
46 if (input.length() < length)
51 *
this = input.take(length);
52 input.advance(length);
58 const auto err = VLength::write(this->length(), dest);
59 if (any(err))
return err;
63 dest.copy_from(*
this);
70 printer.print(name, *
this);
SSP21-cpp main namespace.
parser ran out of bytes before completion
not enough output buffer space