OLD | NEW |
(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_ |
OLD | NEW |