Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
google::protobuf.internal::EpsCopyInputStream Class Reference

#include <parse_context.h>

Inheritance diagram for google::protobuf.internal::EpsCopyInputStream:
Inheritance graph
[legend]

Public Types

enum  { kSlopBytes = 16, kMaxCordBytesToCopy = 512 }
 

Public Member Functions

const PROTOBUF_MUST_USE_RESULT char * AppendString (const char *ptr, int size, std::string *s)
 
void BackUp (const char *ptr)
 
bool ConsumeEndGroup (uint32 start_tag)
 
bool DataAvailable (const char *ptr)
 
bool EndedAtEndOfStream () const
 
bool EndedAtLimit () const
 
 EpsCopyInputStream (bool enable_aliasing)
 
bool IsExceedingLimit (const char *ptr)
 
uint32 LastTag () const
 
PROTOBUF_MUST_USE_RESULT bool PopLimit (int delta)
 
PROTOBUF_MUST_USE_RESULT int PushLimit (const char *ptr, int limit)
 
template<typename T >
const PROTOBUF_MUST_USE_RESULT char * ReadPackedFixed (const char *ptr, int size, RepeatedField< T > *out)
 
template<typename T >
const char * ReadPackedFixed (const char *ptr, int size, RepeatedField< T > *out)
 
template<typename Add >
const PROTOBUF_MUST_USE_RESULT char * ReadPackedVarint (const char *ptr, Add add)
 
template<typename Add >
const char * ReadPackedVarint (const char *ptr, Add add)
 
template<typename Tag , typename T >
const PROTOBUF_MUST_USE_RESULT char * ReadRepeatedFixed (const char *ptr, Tag expected_tag, RepeatedField< T > *out)
 
template<typename Tag , typename T >
const char * ReadRepeatedFixed (const char *ptr, Tag expected_tag, RepeatedField< T > *out)
 
const PROTOBUF_MUST_USE_RESULT char * ReadString (const char *ptr, int size, std::string *s)
 
void SetEndOfStream ()
 
void SetLastTag (uint32 tag)
 
const PROTOBUF_MUST_USE_RESULT char * Skip (const char *ptr, int size)
 

Protected Member Functions

bool DoneWithCheck (const char **ptr, int d)
 
const char * InitFrom (io::ZeroCopyInputStream *zcis)
 
const char * InitFrom (io::ZeroCopyInputStream *zcis, int limit)
 
const char * InitFrom (StringPiece flat)
 

Private Types

enum  { kNoAliasing = 0, kOnPatch = 1, kNoDelta = 2 }
 

Private Member Functions

template<typename A >
const char * AppendSize (const char *ptr, int size, const A &append)
 
const PROTOBUF_MUST_USE_RESULT char * AppendString (const char *ptr, std::string *str)
 
const char * AppendStringFallback (const char *ptr, int size, std::string *str)
 
template<typename A >
const char * AppendUntilEnd (const char *ptr, const A &append)
 
std::pair< const char *, bool > DoneFallback (const char *ptr, int d)
 
const char * Next (int overrun, int d)
 
const char * ReadStringFallback (const char *ptr, int size, std::string *str)
 
const char * SkipFallback (const char *ptr, int size)
 

Private Attributes

std::uintptr_t aliasing_ = kNoAliasing
 
char buffer_ [2 *kSlopBytes] = {}
 
const char * buffer_end_
 
uint32 last_tag_minus_1_ = 0
 
int limit_
 
const char * limit_end_
 
const char * next_chunk_
 
int overall_limit_ = INT_MAX
 
int size_
 
io::ZeroCopyInputStreamzcis_ = nullptr
 

Friends

class ImplicitWeakMessage
 

Detailed Description

Definition at line 107 of file parse_context.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
kSlopBytes 
kMaxCordBytesToCopy 

Definition at line 109 of file parse_context.h.

◆ anonymous enum

anonymous enum
private
Enumerator
kNoAliasing 
kOnPatch 
kNoDelta 

Definition at line 251 of file parse_context.h.

Constructor & Destructor Documentation

◆ EpsCopyInputStream()

google::protobuf.internal::EpsCopyInputStream::EpsCopyInputStream ( bool  enable_aliasing)
inlineexplicit

Definition at line 111 of file parse_context.h.

Member Function Documentation

◆ AppendSize()

template<typename A >
const char* google::protobuf.internal::EpsCopyInputStream::AppendSize ( const char *  ptr,
int  size,
const A append 
)
inlineprivate

Definition at line 276 of file parse_context.h.

◆ AppendString() [1/2]

const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::AppendString ( const char *  ptr,
int  size,
std::string s 
)
inline

Definition at line 158 of file parse_context.h.

◆ AppendString() [2/2]

const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::AppendString ( const char *  ptr,
std::string str 
)
inlineprivate

Definition at line 310 of file parse_context.h.

◆ AppendStringFallback()

const char * google::protobuf.internal::EpsCopyInputStream::AppendStringFallback ( const char *  ptr,
int  size,
std::string str 
)
private

Definition at line 211 of file parse_context.cc.

◆ AppendUntilEnd()

template<typename A >
const char* google::protobuf.internal::EpsCopyInputStream::AppendUntilEnd ( const char *  ptr,
const A append 
)
inlineprivate

Definition at line 302 of file parse_context.h.

◆ BackUp()

void google::protobuf.internal::EpsCopyInputStream::BackUp ( const char *  ptr)
inline

Definition at line 114 of file parse_context.h.

◆ ConsumeEndGroup()

bool google::protobuf.internal::EpsCopyInputStream::ConsumeEndGroup ( uint32  start_tag)
inline

Definition at line 181 of file parse_context.h.

◆ DataAvailable()

bool google::protobuf.internal::EpsCopyInputStream::DataAvailable ( const char *  ptr)
inline

Definition at line 196 of file parse_context.h.

◆ DoneFallback()

std::pair< const char *, bool > google::protobuf.internal::EpsCopyInputStream::DoneFallback ( const char *  ptr,
int  d 
)
private

Definition at line 158 of file parse_context.cc.

◆ DoneWithCheck()

bool google::protobuf.internal::EpsCopyInputStream::DoneWithCheck ( const char **  ptr,
int  d 
)
inlineprotected

Definition at line 202 of file parse_context.h.

◆ EndedAtEndOfStream()

bool google::protobuf.internal::EpsCopyInputStream::EndedAtEndOfStream ( ) const
inline

Definition at line 187 of file parse_context.h.

◆ EndedAtLimit()

bool google::protobuf.internal::EpsCopyInputStream::EndedAtLimit ( ) const
inline

Definition at line 186 of file parse_context.h.

◆ InitFrom() [1/3]

const char * google::protobuf.internal::EpsCopyInputStream::InitFrom ( io::ZeroCopyInputStream zcis)
protected

Definition at line 260 of file parse_context.cc.

◆ InitFrom() [2/3]

const char* google::protobuf.internal::EpsCopyInputStream::InitFrom ( io::ZeroCopyInputStream zcis,
int  limit 
)
inlineprotected

Definition at line 235 of file parse_context.h.

◆ InitFrom() [3/3]

const char* google::protobuf.internal::EpsCopyInputStream::InitFrom ( StringPiece  flat)
inlineprotected

Definition at line 212 of file parse_context.h.

◆ IsExceedingLimit()

bool google::protobuf.internal::EpsCopyInputStream::IsExceedingLimit ( const char *  ptr)
inline

Definition at line 190 of file parse_context.h.

◆ LastTag()

uint32 google::protobuf.internal::EpsCopyInputStream::LastTag ( ) const
inline

Definition at line 180 of file parse_context.h.

◆ Next()

const char * google::protobuf.internal::EpsCopyInputStream::Next ( int  overrun,
int  d 
)
private

Definition at line 102 of file parse_context.cc.

◆ PopLimit()

PROTOBUF_MUST_USE_RESULT bool google::protobuf.internal::EpsCopyInputStream::PopLimit ( int  delta)
inline

Definition at line 135 of file parse_context.h.

◆ PushLimit()

PROTOBUF_MUST_USE_RESULT int google::protobuf.internal::EpsCopyInputStream::PushLimit ( const char *  ptr,
int  limit 
)
inline

Definition at line 126 of file parse_context.h.

◆ ReadPackedFixed() [1/2]

template<typename T >
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadPackedFixed ( const char *  ptr,
int  size,
RepeatedField< T > *  out 
)

◆ ReadPackedFixed() [2/2]

template<typename T >
const char* google::protobuf.internal::EpsCopyInputStream::ReadPackedFixed ( const char *  ptr,
int  size,
RepeatedField< T > *  out 
)

Definition at line 236 of file parse_context.cc.

◆ ReadPackedVarint() [1/2]

template<typename Add >
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadPackedVarint ( const char *  ptr,
Add  add 
)

◆ ReadPackedVarint() [2/2]

template<typename Add >
const char* google::protobuf.internal::EpsCopyInputStream::ReadPackedVarint ( const char *  ptr,
Add  add 
)

Definition at line 586 of file parse_context.h.

◆ ReadRepeatedFixed() [1/2]

template<typename Tag , typename T >
const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadRepeatedFixed ( const char *  ptr,
Tag  expected_tag,
RepeatedField< T > *  out 
)

◆ ReadRepeatedFixed() [2/2]

template<typename Tag , typename T >
const char* google::protobuf.internal::EpsCopyInputStream::ReadRepeatedFixed ( const char *  ptr,
Tag  expected_tag,
RepeatedField< T > *  out 
)

Definition at line 224 of file parse_context.cc.

◆ ReadString()

const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::ReadString ( const char *  ptr,
int  size,
std::string s 
)
inline

Definition at line 150 of file parse_context.h.

◆ ReadStringFallback()

const char * google::protobuf.internal::EpsCopyInputStream::ReadStringFallback ( const char *  ptr,
int  size,
std::string str 
)
private

Definition at line 200 of file parse_context.cc.

◆ SetEndOfStream()

void google::protobuf.internal::EpsCopyInputStream::SetEndOfStream ( )
inline

Definition at line 189 of file parse_context.h.

◆ SetLastTag()

void google::protobuf.internal::EpsCopyInputStream::SetLastTag ( uint32  tag)
inline

Definition at line 188 of file parse_context.h.

◆ Skip()

const PROTOBUF_MUST_USE_RESULT char* google::protobuf.internal::EpsCopyInputStream::Skip ( const char *  ptr,
int  size 
)
inline

Definition at line 144 of file parse_context.h.

◆ SkipFallback()

const char * google::protobuf.internal::EpsCopyInputStream::SkipFallback ( const char *  ptr,
int  size 
)
private

Definition at line 196 of file parse_context.cc.

Friends And Related Function Documentation

◆ ImplicitWeakMessage

friend class ImplicitWeakMessage
friend

Definition at line 315 of file parse_context.h.

Member Data Documentation

◆ aliasing_

std::uintptr_t google::protobuf.internal::EpsCopyInputStream::aliasing_ = kNoAliasing
private

Definition at line 252 of file parse_context.h.

◆ buffer_

char google::protobuf.internal::EpsCopyInputStream::buffer_[2 *kSlopBytes] = {}
private

Definition at line 250 of file parse_context.h.

◆ buffer_end_

const char* google::protobuf.internal::EpsCopyInputStream::buffer_end_
private

Definition at line 245 of file parse_context.h.

◆ last_tag_minus_1_

uint32 google::protobuf.internal::EpsCopyInputStream::last_tag_minus_1_ = 0
private

Definition at line 266 of file parse_context.h.

◆ limit_

int google::protobuf.internal::EpsCopyInputStream::limit_
private

Definition at line 248 of file parse_context.h.

◆ limit_end_

const char* google::protobuf.internal::EpsCopyInputStream::limit_end_
private

Definition at line 244 of file parse_context.h.

◆ next_chunk_

const char* google::protobuf.internal::EpsCopyInputStream::next_chunk_
private

Definition at line 246 of file parse_context.h.

◆ overall_limit_

int google::protobuf.internal::EpsCopyInputStream::overall_limit_ = INT_MAX
private

Definition at line 267 of file parse_context.h.

◆ size_

int google::protobuf.internal::EpsCopyInputStream::size_
private

Definition at line 247 of file parse_context.h.

◆ zcis_

io::ZeroCopyInputStream* google::protobuf.internal::EpsCopyInputStream::zcis_ = nullptr
private

Definition at line 249 of file parse_context.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:09