Developer Documentation
Loading...
Searching...
No Matches
snappy::SnappyArrayWriter Class Reference

Public Member Functions

 SnappyArrayWriter (char *dst)
 
void SetExpectedLength (size_t len)
 
bool CheckLength () const
 
bool Append (const char *ip, size_t len)
 
bool TryFastAppend (const char *ip, size_t available, size_t len)
 
bool AppendFromSelf (size_t offset, size_t len)
 
size_t Produced () const
 
void Flush ()
 

Private Attributes

char * base_
 
char * op_
 
char * op_limit_
 

Detailed Description

Definition at line 1143 of file snappy.cc.

Constructor & Destructor Documentation

◆ SnappyArrayWriter()

snappy::SnappyArrayWriter::SnappyArrayWriter ( char *  dst)
inlineexplicit

Definition at line 1150 of file snappy.cc.

Member Function Documentation

◆ Append()

bool snappy::SnappyArrayWriter::Append ( const char *  ip,
size_t  len 
)
inline

Definition at line 1164 of file snappy.cc.

◆ AppendFromSelf()

bool snappy::SnappyArrayWriter::AppendFromSelf ( size_t  offset,
size_t  len 
)
inline

Definition at line 1189 of file snappy.cc.

◆ CheckLength()

bool snappy::SnappyArrayWriter::CheckLength ( ) const
inline

Definition at line 1160 of file snappy.cc.

◆ Flush()

void snappy::SnappyArrayWriter::Flush ( )
inline

Definition at line 1226 of file snappy.cc.

◆ Produced()

size_t snappy::SnappyArrayWriter::Produced ( ) const
inline

Definition at line 1223 of file snappy.cc.

◆ SetExpectedLength()

void snappy::SnappyArrayWriter::SetExpectedLength ( size_t  len)
inline

Definition at line 1156 of file snappy.cc.

◆ TryFastAppend()

bool snappy::SnappyArrayWriter::TryFastAppend ( const char *  ip,
size_t  available,
size_t  len 
)
inline

Definition at line 1175 of file snappy.cc.

Member Data Documentation

◆ base_

char* snappy::SnappyArrayWriter::base_
private

Definition at line 1145 of file snappy.cc.

◆ op_

char* snappy::SnappyArrayWriter::op_
private

Definition at line 1146 of file snappy.cc.

◆ op_limit_

char* snappy::SnappyArrayWriter::op_limit_
private

Definition at line 1147 of file snappy.cc.


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