Developer Documentation
snappy::Sink Class Referenceabstract
Inheritance diagram for snappy::Sink:
snappy::UncheckedByteArraySink

Public Member Functions

virtual void Append (const char *bytes, size_t n)=0
 
virtual char * GetAppendBuffer (size_t length, char *scratch)
 
virtual void AppendAndTakeOwnership (char *bytes, size_t n, void(*deleter)(void *, const char *, size_t), void *deleter_arg)
 
virtual char * GetAppendBufferVariable (size_t min_size, size_t desired_size_hint, char *scratch, size_t scratch_size, size_t *allocated_size)
 

Private Member Functions

 Sink (const Sink &)
 
void operator= (const Sink &)
 

Detailed Description

Definition at line 37 of file snappy-sinksource.h.

Constructor & Destructor Documentation

◆ Sink()

snappy::Sink::Sink ( )
inline

Definition at line 39 of file snappy-sinksource.h.

◆ ~Sink()

snappy::Sink::~Sink ( )
virtual

Definition at line 37 of file snappy-sinksource.cc.

Member Function Documentation

◆ AppendAndTakeOwnership()

void snappy::Sink::AppendAndTakeOwnership ( char *  bytes,
size_t  n,
void(*)(void *, const char *, size_t)  deleter,
void *  deleter_arg 
)
virtual

Definition at line 50 of file snappy-sinksource.cc.

◆ GetAppendBuffer()

char * snappy::Sink::GetAppendBuffer ( size_t  length,
char *  scratch 
)
virtual

Definition at line 39 of file snappy-sinksource.cc.

◆ GetAppendBufferVariable()

char * snappy::Sink::GetAppendBufferVariable ( size_t  min_size,
size_t  desired_size_hint,
char *  scratch,
size_t  scratch_size,
size_t *  allocated_size 
)
virtual

Definition at line 43 of file snappy-sinksource.cc.


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