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

Side by Side Diff: runtime/bin/gzip.h

Issue 2991393002: [standalone] Automatically decompress gzip'd resources, including sources and script snapshots. (Closed)
Patch Set: . Created 3 years, 4 months 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
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 #ifndef RUNTIME_BIN_GZIP_H_
6 #define RUNTIME_BIN_GZIP_H_
7
8 #include "platform/globals.h"
9
10 namespace dart {
11 namespace bin {
12
13 // |input| is assumed to be a gzipped stream.
14 // This function allocates the output buffer in the C heap and the caller
15 // is responsible for freeing it.
16 void Decompress(const uint8_t* input,
17 intptr_t input_len,
18 uint8_t** output,
19 intptr_t* output_length);
20
21 // This function allocates the output buffer in the C heap and the caller
22 // is responsible for freeing it.
23 void Compress(const uint8_t* input,
24 intptr_t input_len,
25 uint8_t** output,
26 intptr_t* output_length);
27
28 } // namespace bin
29 } // namespace dart
30
31 #endif // RUNTIME_BIN_GZIP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698