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 | } // namespace bin |
22 | } // namespace dart |
23 | |
24 | #endif // RUNTIME_BIN_GZIP_H_ |
25 | |