Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: src/platform/update_engine/gzip.h

Issue 465067: Missed new files in last commit
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/update_engine/generate_delta_main.cc ('k') | src/platform/update_engine/gzip.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <string>
6 #include <vector>
7
8 namespace chromeos_update_engine {
9
10 // Gzip compresses or decompresses the input to the output.
11 // Returns true on success. If true, *out will point to a malloc()ed
12 // buffer, which must be free()d by the caller.
13 bool GzipCompressData(const char* const in, const size_t in_size,
14 char** out, size_t* out_size);
15 bool GzipDecompressData(const char* const in, const size_t in_size,
16 char** out, size_t* out_size);
17
18 // Helper functions:
19 bool GzipDecompress(const std::vector<char>& in, std::vector<char>* out);
20 bool GzipCompress(const std::vector<char>& in, std::vector<char>* out);
21 bool GzipCompressString(const std::string& str, std::vector<char>* out);
22 bool GzipDecompressString(const std::string& str, std::vector<char>* out);
23
24 } // namespace chromeos_update_engine {
OLDNEW
« no previous file with comments | « src/platform/update_engine/generate_delta_main.cc ('k') | src/platform/update_engine/gzip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698