mirror of
https://github.com/google/leveldb.git
synced 2026-08-22 10:53:27 +08:00
Pull from upstream.
git-svn-id: https://leveldb.googlecode.com/svn/trunk@14 62dab493-f737-651d-591e-8d6aee1b9529
This commit is contained in:
@@ -82,29 +82,20 @@ class AtomicPointer {
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* TODO(gabor): Implement actual compress
|
||||
* This is a hack - it just copies input to output.
|
||||
* No actual compression occurs.
|
||||
*/
|
||||
inline void Lightweight_Compress(
|
||||
// TODO(gabor): Implement actual compress
|
||||
inline bool Snappy_Compress(
|
||||
const char* input,
|
||||
size_t input_length,
|
||||
std::string* output) {
|
||||
output->copy((char*)input,0,input_length);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* TODO(gabor): Implement actual compress
|
||||
* This is a hack - it just copies input to output.
|
||||
* No actual uncompression occurs.
|
||||
*/
|
||||
inline bool Lightweight_Uncompress(
|
||||
// TODO(gabor): Implement actual uncompress
|
||||
inline bool Snappy_Uncompress(
|
||||
const char* input_data,
|
||||
size_t input_length,
|
||||
std::string* output) {
|
||||
output->copy((char*)input_data,0,input_length);
|
||||
return (bool)1;
|
||||
return false;
|
||||
}
|
||||
|
||||
inline void SHA1_Hash(const char* data, size_t len, char* hash_array) {
|
||||
|
||||
Reference in New Issue
Block a user