Developer Documentation
snappy::SnappyScatteredWriter< Allocator > Class Template Reference

Public Member Functions

 SnappyScatteredWriter (const Allocator &allocator)
 
void SetExpectedLength (size_t len)
 
bool CheckLength () const
 
size_t Produced () 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 Member Functions

size_t Size () const
 
bool SlowAppend (const char *ip, size_t len)
 
bool SlowAppendFromSelf (size_t offset, size_t len)
 

Private Attributes

Allocator allocator_
 
vector< char * > blocks_
 
size_t expected_
 
size_t full_size_
 
char * op_base_
 
char * op_ptr_
 
char * op_limit_
 

Detailed Description

template<typename Allocator>
class snappy::SnappyScatteredWriter< Allocator >

Definition at line 1326 of file snappy.cc.

Constructor & Destructor Documentation

◆ SnappyScatteredWriter()

template<typename Allocator >
snappy::SnappyScatteredWriter< Allocator >::SnappyScatteredWriter ( const Allocator &  allocator)
inlineexplicit

Definition at line 1351 of file snappy.cc.

Member Function Documentation

◆ Append()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::Append ( const char *  ip,
size_t  len 
)
inline

Definition at line 1374 of file snappy.cc.

◆ AppendFromSelf()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::AppendFromSelf ( size_t  offset,
size_t  len 
)
inline

Definition at line 1401 of file snappy.cc.

◆ CheckLength()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::CheckLength ( ) const
inline

Definition at line 1365 of file snappy.cc.

◆ Flush()

template<typename Allocator >
void snappy::SnappyScatteredWriter< Allocator >::Flush ( )
inline

Definition at line 1420 of file snappy.cc.

◆ Produced()

template<typename Allocator >
size_t snappy::SnappyScatteredWriter< Allocator >::Produced ( ) const
inline

Definition at line 1370 of file snappy.cc.

◆ SetExpectedLength()

template<typename Allocator >
void snappy::SnappyScatteredWriter< Allocator >::SetExpectedLength ( size_t  len)
inline

Definition at line 1360 of file snappy.cc.

◆ Size()

template<typename Allocator >
size_t snappy::SnappyScatteredWriter< Allocator >::Size ( ) const
inlineprivate

Definition at line 1343 of file snappy.cc.

◆ SlowAppend()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::SlowAppend ( const char *  ip,
size_t  len 
)
private

Definition at line 1424 of file snappy.cc.

◆ SlowAppendFromSelf()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::SlowAppendFromSelf ( size_t  offset,
size_t  len 
)
private

Definition at line 1455 of file snappy.cc.

◆ TryFastAppend()

template<typename Allocator >
bool snappy::SnappyScatteredWriter< Allocator >::TryFastAppend ( const char *  ip,
size_t  available,
size_t  length 
)
inline

Definition at line 1386 of file snappy.cc.

Member Data Documentation

◆ allocator_

template<typename Allocator >
Allocator snappy::SnappyScatteredWriter< Allocator >::allocator_
private

Definition at line 1327 of file snappy.cc.

◆ blocks_

template<typename Allocator >
vector<char*> snappy::SnappyScatteredWriter< Allocator >::blocks_
private

Definition at line 1332 of file snappy.cc.

◆ expected_

template<typename Allocator >
size_t snappy::SnappyScatteredWriter< Allocator >::expected_
private

Definition at line 1333 of file snappy.cc.

◆ full_size_

template<typename Allocator >
size_t snappy::SnappyScatteredWriter< Allocator >::full_size_
private

Definition at line 1336 of file snappy.cc.

◆ op_base_

template<typename Allocator >
char* snappy::SnappyScatteredWriter< Allocator >::op_base_
private

Definition at line 1339 of file snappy.cc.

◆ op_limit_

template<typename Allocator >
char* snappy::SnappyScatteredWriter< Allocator >::op_limit_
private

Definition at line 1341 of file snappy.cc.

◆ op_ptr_

template<typename Allocator >
char* snappy::SnappyScatteredWriter< Allocator >::op_ptr_
private

Definition at line 1340 of file snappy.cc.


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