Developer Documentation
snappy::SnappyDecompressionValidator Class Reference

Public Member Functions

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 length)
 
bool AppendFromSelf (size_t offset, size_t len)
 
void Flush ()
 

Private Attributes

size_t expected_
 
size_t produced_
 

Detailed Description

Definition at line 1254 of file snappy.cc.

Constructor & Destructor Documentation

◆ SnappyDecompressionValidator()

snappy::SnappyDecompressionValidator::SnappyDecompressionValidator ( )
inline

Definition at line 1260 of file snappy.cc.

Member Function Documentation

◆ Append()

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

Definition at line 1267 of file snappy.cc.

◆ AppendFromSelf()

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

Definition at line 1274 of file snappy.cc.

◆ CheckLength()

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

Definition at line 1264 of file snappy.cc.

◆ Flush()

void snappy::SnappyDecompressionValidator::Flush ( )
inline

Definition at line 1281 of file snappy.cc.

◆ SetExpectedLength()

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

Definition at line 1261 of file snappy.cc.

◆ TryFastAppend()

bool snappy::SnappyDecompressionValidator::TryFastAppend ( const char *  ip,
size_t  available,
size_t  length 
)
inline

Definition at line 1271 of file snappy.cc.

Member Data Documentation

◆ expected_

size_t snappy::SnappyDecompressionValidator::expected_
private

Definition at line 1256 of file snappy.cc.

◆ produced_

size_t snappy::SnappyDecompressionValidator::produced_
private

Definition at line 1257 of file snappy.cc.


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