Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::strings::GrowingArrayByteSink Class Reference

#include <bytestream.h>

Inheritance diagram for google::protobuf::strings::GrowingArrayByteSink:
Inheritance graph
[legend]

Public Member Functions

virtual void Append (const char *bytes, size_t n) override
 
virtual void Append (const char *bytes, size_t n) override
 
char * GetBuffer (size_t *nbytes)
 
char * GetBuffer (size_t *nbytes)
 
 GrowingArrayByteSink (size_t estimated_size)
 
 GrowingArrayByteSink (size_t estimated_size)
 
virtual ~GrowingArrayByteSink ()
 
virtual ~GrowingArrayByteSink ()
 
- Public Member Functions inherited from google::protobuf::strings::ByteSink
 ByteSink ()
 
 ByteSink ()
 
virtual void Flush ()
 
virtual void Flush ()
 
virtual ~ByteSink ()
 
virtual ~ByteSink ()
 

Private Member Functions

void Expand (size_t amount)
 
void Expand (size_t amount)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (GrowingArrayByteSink)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (GrowingArrayByteSink)
 
void ShrinkToFit ()
 
void ShrinkToFit ()
 

Private Attributes

char * buf_
 
size_t capacity_
 
size_t size_
 

Detailed Description

Definition at line 227 of file bloaty/third_party/protobuf/src/google/protobuf/stubs/bytestream.h.

Constructor & Destructor Documentation

◆ GrowingArrayByteSink() [1/2]

google::protobuf::strings::GrowingArrayByteSink::GrowingArrayByteSink ( size_t  estimated_size)
explicit

◆ ~GrowingArrayByteSink() [1/2]

google::protobuf::strings::GrowingArrayByteSink::~GrowingArrayByteSink ( )
virtual

◆ GrowingArrayByteSink() [2/2]

google::protobuf::strings::GrowingArrayByteSink::GrowingArrayByteSink ( size_t  estimated_size)
explicit

◆ ~GrowingArrayByteSink() [2/2]

virtual google::protobuf::strings::GrowingArrayByteSink::~GrowingArrayByteSink ( )
virtual

Member Function Documentation

◆ Append() [1/2]

void google::protobuf::strings::GrowingArrayByteSink::Append ( const char *  bytes,
size_t  n 
)
overridevirtual

◆ Append() [2/2]

virtual void google::protobuf::strings::GrowingArrayByteSink::Append ( const char *  bytes,
size_t  n 
)
overridevirtual

◆ Expand() [1/2]

void google::protobuf::strings::GrowingArrayByteSink::Expand ( size_t  amount)
private

◆ Expand() [2/2]

void google::protobuf::strings::GrowingArrayByteSink::Expand ( size_t  amount)
private

◆ GetBuffer() [1/2]

char * google::protobuf::strings::GrowingArrayByteSink::GetBuffer ( size_t *  nbytes)

◆ GetBuffer() [2/2]

char* google::protobuf::strings::GrowingArrayByteSink::GetBuffer ( size_t *  nbytes)

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::strings::GrowingArrayByteSink::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( GrowingArrayByteSink  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::strings::GrowingArrayByteSink::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( GrowingArrayByteSink  )
private

◆ ShrinkToFit() [1/2]

void google::protobuf::strings::GrowingArrayByteSink::ShrinkToFit ( )
private

◆ ShrinkToFit() [2/2]

void google::protobuf::strings::GrowingArrayByteSink::ShrinkToFit ( )
private

Member Data Documentation

◆ buf_

char * google::protobuf::strings::GrowingArrayByteSink::buf_
private

◆ capacity_

size_t google::protobuf::strings::GrowingArrayByteSink::capacity_
private

◆ size_

size_t google::protobuf::strings::GrowingArrayByteSink::size_
private

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:28