-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from burlog/master
zlib compression
- Loading branch information
Showing
13 changed files
with
246 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* | ||
* FILE $Id: $ | ||
* | ||
* DESCRIPTION Command serialization/deserialization: zlib stuff. | ||
* | ||
* PROJECT Seznam memcache client. | ||
* | ||
* LICENSE See COPYING | ||
* | ||
* AUTHOR Michal Bukovsky <[email protected]> | ||
* | ||
* Copyright (C) Seznam.cz a.s. 2012 | ||
* All Rights Reserved | ||
* | ||
* HISTORY | ||
* 2016-03-03 (bukovsky) | ||
* First draft. | ||
*/ | ||
|
||
#ifndef MCACHE_PROTO_ZLIB_H | ||
#define MCACHE_PROTO_ZLIB_H | ||
|
||
namespace mc { | ||
namespace proto { | ||
namespace zlib { | ||
|
||
/** Returns compressed data. | ||
*/ | ||
std::string compress(const std::string &data); | ||
|
||
/** Returns uncompressed data. | ||
*/ | ||
std::string | ||
uncompress(const std::string &data, | ||
std::string::size_type index = 0, | ||
std::string::size_type count = std::string::npos); | ||
|
||
} // namespace zlib | ||
} // namespace proto | ||
} // namespace mc | ||
|
||
#endif /* MCACHE_PROTO_ZLIB_H */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.