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

Classes

struct  Bounds
 
class  BytesReader
 

Public Member Functions

constexpr StreamDecoder (stream::Reader &reader)
 
constexpr StreamDecoder (stream::Reader &reader, size_t length)
 
 StreamDecoder (const StreamDecoder &other)=delete
 
StreamDecoderoperator= (const StreamDecoder &other)=delete
 
Status Next ()
 
constexpr Result< uint32_t > FieldNumber () const
 
Result< int32_t > ReadInt32 ()
 
StatusWithSize ReadPackedInt32 (span< int32_t > out)
 
Status ReadRepeatedInt32 (pw::Vector< int32_t > &out)
 
Result< uint32_t > ReadUint32 ()
 
StatusWithSize ReadPackedUint32 (span< uint32_t > out)
 
Status ReadRepeatedUint32 (pw::Vector< uint32_t > &out)
 
Result< int64_t > ReadInt64 ()
 
StatusWithSize ReadPackedInt64 (span< int64_t > out)
 
Status ReadRepeatedInt64 (pw::Vector< int64_t > &out)
 
Result< uint64_t > ReadUint64 ()
 
StatusWithSize ReadPackedUint64 (span< uint64_t > out)
 
Status ReadRepeatedUint64 (pw::Vector< uint64_t > &out)
 
Result< int32_t > ReadSint32 ()
 
StatusWithSize ReadPackedSint32 (span< int32_t > out)
 
Status ReadRepeatedSint32 (pw::Vector< int32_t > &out)
 
Result< int64_t > ReadSint64 ()
 
StatusWithSize ReadPackedSint64 (span< int64_t > out)
 
Status ReadRepeatedSint64 (pw::Vector< int64_t > &out)
 
Result< bool > ReadBool ()
 
StatusWithSize ReadPackedBool (span< bool > out)
 
Status ReadRepeatedBool (pw::Vector< bool > &out)
 
Result< uint32_t > ReadFixed32 ()
 
StatusWithSize ReadPackedFixed32 (span< uint32_t > out)
 
Status ReadRepeatedFixed32 (pw::Vector< uint32_t > &out)
 
Result< uint64_t > ReadFixed64 ()
 
StatusWithSize ReadPackedFixed64 (span< uint64_t > out)
 
Status ReadRepeatedFixed64 (pw::Vector< uint64_t > &out)
 
Result< int32_t > ReadSfixed32 ()
 
StatusWithSize ReadPackedSfixed32 (span< int32_t > out)
 
Status ReadRepeatedSfixed32 (pw::Vector< int32_t > &out)
 
Result< int64_t > ReadSfixed64 ()
 
StatusWithSize ReadPackedSfixed64 (span< int64_t > out)
 
Status ReadRepeatedSfixed64 (pw::Vector< int64_t > &out)
 
Result< float > ReadFloat ()
 
StatusWithSize ReadPackedFloat (span< float > out)
 
Status ReadRepeatedFloat (pw::Vector< float > &out)
 
Result< double > ReadDouble ()
 
StatusWithSize ReadPackedDouble (span< double > out)
 
Status ReadRepeatedDouble (pw::Vector< double > &out)
 
StatusWithSize ReadString (span< char > out)
 
StatusWithSize ReadBytes (span< std::byte > out)
 
BytesReader GetBytesReader ()
 
StreamDecoder GetNestedDecoder ()
 
Result< BoundsGetLengthDelimitedPayloadBounds ()
 

Protected Member Functions

constexpr StreamDecoder (StreamDecoder &&other)
 
Status Read (span< std::byte > message, span< const internal::MessageField > table)
 

Friends

class BytesReader
 
class Message
 

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