Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::io::CopyingOutputStreamAdaptor Class Reference

#include <zero_copy_stream_impl_lite.h>

Inheritance diagram for google::protobuf::io::CopyingOutputStreamAdaptor:
Inheritance graph
[legend]

Public Member Functions

bool AllowsAliasing () const override
 
void BackUp (int count) override
 
void BackUp (int count) override
 
int64 ByteCount () const override
 
int64_t ByteCount () const override
 
 CopyingOutputStreamAdaptor (CopyingOutputStream *copying_stream, int block_size=-1)
 
 CopyingOutputStreamAdaptor (CopyingOutputStream *copying_stream, int block_size=-1)
 
bool Flush ()
 
bool Flush ()
 
bool Next (void **data, int *size) override
 
bool Next (void **data, int *size) override
 
void SetOwnsCopyingStream (bool value)
 
void SetOwnsCopyingStream (bool value)
 
bool WriteAliasedRaw (const void *data, int size) override
 
 ~CopyingOutputStreamAdaptor () override
 
 ~CopyingOutputStreamAdaptor () override
 
- Public Member Functions inherited from google::protobuf::io::ZeroCopyOutputStream
 ZeroCopyOutputStream ()
 
 ZeroCopyOutputStream ()
 
virtual ~ZeroCopyOutputStream ()
 
virtual ~ZeroCopyOutputStream ()
 

Private Member Functions

void AllocateBufferIfNeeded ()
 
void AllocateBufferIfNeeded ()
 
void FreeBuffer ()
 
void FreeBuffer ()
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (CopyingOutputStreamAdaptor)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (CopyingOutputStreamAdaptor)
 
bool WriteBuffer ()
 
bool WriteBuffer ()
 

Private Attributes

std::unique_ptr< uint8[]> buffer_
 
std::unique_ptr< uint8_t[]> buffer_
 
const int buffer_size_
 
int buffer_used_
 
CopyingOutputStreamcopying_stream_
 
bool failed_
 
bool owns_copying_stream_
 
int64 position_
 
int64_t position_
 

Detailed Description

Definition at line 286 of file bloaty/third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h.

Constructor & Destructor Documentation

◆ CopyingOutputStreamAdaptor() [1/2]

google::protobuf::io::CopyingOutputStreamAdaptor::CopyingOutputStreamAdaptor ( CopyingOutputStream copying_stream,
int  block_size = -1 
)
explicit

◆ ~CopyingOutputStreamAdaptor() [1/2]

google::protobuf::io::CopyingOutputStreamAdaptor::~CopyingOutputStreamAdaptor ( )
override

◆ CopyingOutputStreamAdaptor() [2/2]

google::protobuf::io::CopyingOutputStreamAdaptor::CopyingOutputStreamAdaptor ( CopyingOutputStream copying_stream,
int  block_size = -1 
)
explicit

◆ ~CopyingOutputStreamAdaptor() [2/2]

google::protobuf::io::CopyingOutputStreamAdaptor::~CopyingOutputStreamAdaptor ( )
override

Member Function Documentation

◆ AllocateBufferIfNeeded() [1/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::AllocateBufferIfNeeded ( )
private

◆ AllocateBufferIfNeeded() [2/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::AllocateBufferIfNeeded ( )
private

◆ AllowsAliasing()

bool google::protobuf::io::CopyingOutputStreamAdaptor::AllowsAliasing ( ) const
inlineoverridevirtual

◆ BackUp() [1/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::BackUp ( int  count)
overridevirtual

◆ BackUp() [2/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::BackUp ( int  count)
overridevirtual

◆ ByteCount() [1/2]

int64_t google::protobuf::io::CopyingOutputStreamAdaptor::ByteCount ( ) const
overridevirtual

◆ ByteCount() [2/2]

int64_t google::protobuf::io::CopyingOutputStreamAdaptor::ByteCount ( ) const
overridevirtual

◆ Flush() [1/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::Flush ( )

◆ Flush() [2/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::Flush ( )

◆ FreeBuffer() [1/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::FreeBuffer ( )
private

◆ FreeBuffer() [2/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::FreeBuffer ( )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [1/2]

google::protobuf::io::CopyingOutputStreamAdaptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( CopyingOutputStreamAdaptor  )
private

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS() [2/2]

google::protobuf::io::CopyingOutputStreamAdaptor::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( CopyingOutputStreamAdaptor  )
private

◆ Next() [1/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::Next ( void **  data,
int size 
)
overridevirtual

◆ Next() [2/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::Next ( void **  data,
int size 
)
overridevirtual

◆ SetOwnsCopyingStream() [1/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::SetOwnsCopyingStream ( bool  value)
inline

◆ SetOwnsCopyingStream() [2/2]

void google::protobuf::io::CopyingOutputStreamAdaptor::SetOwnsCopyingStream ( bool  value)
inline

◆ WriteAliasedRaw()

bool google::protobuf::io::CopyingOutputStreamAdaptor::WriteAliasedRaw ( const void *  data,
int  size 
)
overridevirtual

◆ WriteBuffer() [1/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::WriteBuffer ( )
private

◆ WriteBuffer() [2/2]

bool google::protobuf::io::CopyingOutputStreamAdaptor::WriteBuffer ( )
private

Member Data Documentation

◆ buffer_ [1/2]

std::unique_ptr<uint8[]> google::protobuf::io::CopyingOutputStreamAdaptor::buffer_
private

◆ buffer_ [2/2]

std::unique_ptr<uint8_t[]> google::protobuf::io::CopyingOutputStreamAdaptor::buffer_
private

◆ buffer_size_

const int google::protobuf::io::CopyingOutputStreamAdaptor::buffer_size_
private

◆ buffer_used_

int google::protobuf::io::CopyingOutputStreamAdaptor::buffer_used_
private

◆ copying_stream_

CopyingOutputStream * google::protobuf::io::CopyingOutputStreamAdaptor::copying_stream_
private

◆ failed_

bool google::protobuf::io::CopyingOutputStreamAdaptor::failed_
private

◆ owns_copying_stream_

bool google::protobuf::io::CopyingOutputStreamAdaptor::owns_copying_stream_
private

◆ position_ [1/2]

int64 google::protobuf::io::CopyingOutputStreamAdaptor::position_
private

◆ position_ [2/2]

int64_t google::protobuf::io::CopyingOutputStreamAdaptor::position_
private

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


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