mirror of
https://github.com/xenia-project/snappy.git
synced 2026-01-31 01:25:21 +01:00
Fix public issue #53: Update the README to the API we actually open-sourced
with. R=sanjay git-svn-id: https://snappy.googlecode.com/svn/trunk@52 03e5f5b5-db94-4691-08a0-1a8bf15f6143
This commit is contained in:
4
README
4
README
@@ -76,11 +76,11 @@ your calling file, and link against the compiled library.
|
||||
|
||||
There are many ways to call Snappy, but the simplest possible is
|
||||
|
||||
snappy::Compress(input, &output);
|
||||
snappy::Compress(input.data(), input.size(), &output);
|
||||
|
||||
and similarly
|
||||
|
||||
snappy::Uncompress(input, &output);
|
||||
snappy::Uncompress(input.data(), input.size(), &output);
|
||||
|
||||
where "input" and "output" are both instances of std::string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user