webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Types | Public Member Functions | Static Public Member Functions | List of all members
google::protobuf::io::CodedInputStream Class Reference

#include <coded_stream.h>

Public Types

typedef int Limit
 

Public Member Functions

 CodedInputStream (ZeroCopyInputStream *input)
 
 CodedInputStream (const uint8 *buffer, int size)
 
 ~CodedInputStream ()
 
bool IsFlat () const
 
bool Skip (int count)
 
bool GetDirectBufferPointer (const void **data, int *size)
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE void GetDirectBufferPointerInline (const void **data, int *size)
 
bool ReadRaw (void *buffer, int size)
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE bool InternalReadRawInline (void *buffer, int size)
 
bool ReadString (string *buffer, int size)
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE bool InternalReadStringInline (string *buffer, int size)
 
bool ReadLittleEndian32 (uint32 *value)
 
bool ReadLittleEndian64 (uint64 *value)
 
bool ReadVarint32 (uint32 *value)
 
bool ReadVarint64 (uint64 *value)
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE uint32 ReadTag ()
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE std::pair< uint32, bool > ReadTagWithCutoff (uint32 cutoff)
 
GOOGLE_ATTRIBUTE_ALWAYS_INLINE bool ExpectTag (uint32 expected)
 
bool ExpectAtEnd ()
 
bool LastTagWas (uint32 expected)
 
bool ConsumedEntireMessage ()
 
Limit PushLimit (int byte_limit)
 
void PopLimit (Limit limit)
 
int BytesUntilLimit () const
 
int CurrentPosition () const
 
void SetTotalBytesLimit (int total_bytes_limit, int warning_threshold)
 
int BytesUntilTotalBytesLimit () const
 
void SetRecursionLimit (int limit)
 
bool IncrementRecursionDepth ()
 
void DecrementRecursionDepth ()
 
void UnsafeDecrementRecursionDepth ()
 
std::pair< CodedInputStream::Limit, int > IncrementRecursionDepthAndPushLimit (int byte_limit)
 
Limit ReadLengthAndPushLimit ()
 
bool DecrementRecursionDepthAndPopLimit (Limit limit)
 
bool CheckEntireMessageConsumedAndPopLimit (Limit limit)
 
void SetExtensionRegistry (const DescriptorPool *pool, MessageFactory *factory)
 
const DescriptorPoolGetExtensionPool ()
 
MessageFactoryGetExtensionFactory ()
 

Static Public Member Functions

static const uint8ReadLittleEndian32FromArray (const uint8 *buffer, uint32 *value)
 
static const uint8ReadLittleEndian64FromArray (const uint8 *buffer, uint64 *value)
 
static GOOGLE_ATTRIBUTE_ALWAYS_INLINE const uint8ExpectTagFromArray (const uint8 *buffer, uint32 expected)
 

Member Typedef Documentation

◆ Limit

Constructor & Destructor Documentation

◆ CodedInputStream() [1/2]

google::protobuf::io::CodedInputStream::CodedInputStream ( ZeroCopyInputStream input)
inlineexplicit

◆ CodedInputStream() [2/2]

google::protobuf::io::CodedInputStream::CodedInputStream ( const uint8 buffer,
int  size 
)
inlineexplicit

◆ ~CodedInputStream()

google::protobuf::io::CodedInputStream::~CodedInputStream ( )

Member Function Documentation

◆ BytesUntilLimit()

int google::protobuf::io::CodedInputStream::BytesUntilLimit ( ) const

◆ BytesUntilTotalBytesLimit()

int google::protobuf::io::CodedInputStream::BytesUntilTotalBytesLimit ( ) const

◆ CheckEntireMessageConsumedAndPopLimit()

bool google::protobuf::io::CodedInputStream::CheckEntireMessageConsumedAndPopLimit ( Limit  limit)

◆ ConsumedEntireMessage()

bool google::protobuf::io::CodedInputStream::ConsumedEntireMessage ( )
inline

◆ CurrentPosition()

int google::protobuf::io::CodedInputStream::CurrentPosition ( ) const
inline

◆ DecrementRecursionDepth()

void google::protobuf::io::CodedInputStream::DecrementRecursionDepth ( )
inline

◆ DecrementRecursionDepthAndPopLimit()

bool google::protobuf::io::CodedInputStream::DecrementRecursionDepthAndPopLimit ( Limit  limit)

◆ ExpectAtEnd()

bool google::protobuf::io::CodedInputStream::ExpectAtEnd ( )
inline

◆ ExpectTag()

bool google::protobuf::io::CodedInputStream::ExpectTag ( uint32  expected)
inline

◆ ExpectTagFromArray()

const uint8 * google::protobuf::io::CodedInputStream::ExpectTagFromArray ( const uint8 buffer,
uint32  expected 
)
inlinestatic

◆ GetDirectBufferPointer()

bool google::protobuf::io::CodedInputStream::GetDirectBufferPointer ( const void **  data,
int *  size 
)

◆ GetDirectBufferPointerInline()

void google::protobuf::io::CodedInputStream::GetDirectBufferPointerInline ( const void **  data,
int *  size 
)
inline

◆ GetExtensionFactory()

MessageFactory * google::protobuf::io::CodedInputStream::GetExtensionFactory ( )
inline

◆ GetExtensionPool()

const DescriptorPool * google::protobuf::io::CodedInputStream::GetExtensionPool ( )
inline

◆ IncrementRecursionDepth()

bool google::protobuf::io::CodedInputStream::IncrementRecursionDepth ( )
inline

◆ IncrementRecursionDepthAndPushLimit()

std::pair< CodedInputStream::Limit, int > google::protobuf::io::CodedInputStream::IncrementRecursionDepthAndPushLimit ( int  byte_limit)

◆ InternalReadRawInline()

bool google::protobuf::io::CodedInputStream::InternalReadRawInline ( void buffer,
int  size 
)
inline

◆ InternalReadStringInline()

bool google::protobuf::io::CodedInputStream::InternalReadStringInline ( string buffer,
int  size 
)
inline

◆ IsFlat()

bool google::protobuf::io::CodedInputStream::IsFlat ( ) const
inline

◆ LastTagWas()

bool google::protobuf::io::CodedInputStream::LastTagWas ( uint32  expected)
inline

◆ PopLimit()

void google::protobuf::io::CodedInputStream::PopLimit ( Limit  limit)

◆ PushLimit()

CodedInputStream::Limit google::protobuf::io::CodedInputStream::PushLimit ( int  byte_limit)

◆ ReadLengthAndPushLimit()

CodedInputStream::Limit google::protobuf::io::CodedInputStream::ReadLengthAndPushLimit ( )

◆ ReadLittleEndian32()

bool google::protobuf::io::CodedInputStream::ReadLittleEndian32 ( uint32 value)
inline

◆ ReadLittleEndian32FromArray()

const uint8 * google::protobuf::io::CodedInputStream::ReadLittleEndian32FromArray ( const uint8 buffer,
uint32 value 
)
inlinestatic

◆ ReadLittleEndian64()

bool google::protobuf::io::CodedInputStream::ReadLittleEndian64 ( uint64 value)
inline

◆ ReadLittleEndian64FromArray()

const uint8 * google::protobuf::io::CodedInputStream::ReadLittleEndian64FromArray ( const uint8 buffer,
uint64 value 
)
inlinestatic

◆ ReadRaw()

bool google::protobuf::io::CodedInputStream::ReadRaw ( void buffer,
int  size 
)

◆ ReadString()

bool google::protobuf::io::CodedInputStream::ReadString ( string buffer,
int  size 
)

◆ ReadTag()

uint32 google::protobuf::io::CodedInputStream::ReadTag ( )
inline

◆ ReadTagWithCutoff()

std::pair< uint32, bool > google::protobuf::io::CodedInputStream::ReadTagWithCutoff ( uint32  cutoff)
inline

◆ ReadVarint32()

bool google::protobuf::io::CodedInputStream::ReadVarint32 ( uint32 value)
inline

◆ ReadVarint64()

bool google::protobuf::io::CodedInputStream::ReadVarint64 ( uint64 value)
inline

◆ SetExtensionRegistry()

void google::protobuf::io::CodedInputStream::SetExtensionRegistry ( const DescriptorPool pool,
MessageFactory factory 
)
inline

◆ SetRecursionLimit()

void google::protobuf::io::CodedInputStream::SetRecursionLimit ( int  limit)
inline

◆ SetTotalBytesLimit()

void google::protobuf::io::CodedInputStream::SetTotalBytesLimit ( int  total_bytes_limit,
int  warning_threshold 
)

◆ Skip()

bool google::protobuf::io::CodedInputStream::Skip ( int  count)

◆ UnsafeDecrementRecursionDepth()

void google::protobuf::io::CodedInputStream::UnsafeDecrementRecursionDepth ( )
inline

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