C/C++ API Reference
Loading...
Searching...
No Matches
pw::protobuf::Decoder Class Reference

Public Member Functions

constexpr Decoder (span< const std::byte > proto)
 
 Decoder (const Decoder &other)=delete
 
Decoderoperator= (const Decoder &other)=delete
 
Status Next ()
 
uint32_t FieldNumber () const
 
Status ReadInt32 (int32_t *out)
 
Status ReadUint32 (uint32_t *out)
 
Status ReadInt64 (int64_t *out)
 
Status ReadUint64 (uint64_t *out)
 
Status ReadSint32 (int32_t *out)
 
Status ReadSint64 (int64_t *out)
 
Status ReadBool (bool *out)
 
Status ReadFixed32 (uint32_t *out)
 
Status ReadFixed64 (uint64_t *out)
 
Status ReadSfixed32 (int32_t *out)
 
Status ReadSfixed64 (int64_t *out)
 
Status ReadFloat (float *out)
 
Status ReadDouble (double *out)
 
Status ReadString (std::string_view *out)
 
Status ReadBytes (span< const std::byte > *out)
 
void Reset (span< const std::byte > proto)
 

Friends

Result< ConstByteSpanFindRaw (ConstByteSpan, uint32_t)
 Returns a span containing the raw bytes of the value.
 

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