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

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

Private Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 285 of file zero_copy_stream_impl_lite.h.

Constructor & Destructor Documentation

◆ CopyingOutputStreamAdaptor()

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

Definition at line 303 of file zero_copy_stream_impl_lite.cc.

◆ ~CopyingOutputStreamAdaptor()

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

Definition at line 312 of file zero_copy_stream_impl_lite.cc.

Member Function Documentation

◆ AllocateBufferIfNeeded()

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

Definition at line 368 of file zero_copy_stream_impl_lite.cc.

◆ BackUp()

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

◆ ByteCount()

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

◆ Flush()

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

Definition at line 319 of file zero_copy_stream_impl_lite.cc.

◆ FreeBuffer()

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

Definition at line 374 of file zero_copy_stream_impl_lite.cc.

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

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

◆ Next()

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

◆ SetOwnsCopyingStream()

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

Definition at line 302 of file zero_copy_stream_impl_lite.h.

◆ WriteBuffer()

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

Definition at line 349 of file zero_copy_stream_impl_lite.cc.

Member Data Documentation

◆ buffer_

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

Definition at line 330 of file zero_copy_stream_impl_lite.h.

◆ buffer_size_

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

Definition at line 331 of file zero_copy_stream_impl_lite.h.

◆ buffer_used_

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

Definition at line 336 of file zero_copy_stream_impl_lite.h.

◆ copying_stream_

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

Definition at line 318 of file zero_copy_stream_impl_lite.h.

◆ failed_

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

Definition at line 322 of file zero_copy_stream_impl_lite.h.

◆ owns_copying_stream_

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

Definition at line 319 of file zero_copy_stream_impl_lite.h.

◆ position_

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

Definition at line 326 of file zero_copy_stream_impl_lite.h.


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


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