33 #ifndef THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_C_H_ 34 #define THIRD_PARTY_SNAPPY_OPENSOURCE_SNAPPY_C_H_ 48 SNAPPY_INVALID_INPUT = 1,
49 SNAPPY_BUFFER_TOO_SMALL = 2
71 snappy_status snappy_compress(
const char* input,
74 size_t* compressed_length);
103 snappy_status snappy_uncompress(
const char* compressed,
104 size_t compressed_length,
106 size_t* uncompressed_length);
112 size_t snappy_max_compressed_length(
size_t source_length);
120 snappy_status snappy_uncompressed_length(
const char* compressed,
121 size_t compressed_length,
131 snappy_status snappy_validate_compressed_buffer(
const char* compressed,
132 size_t compressed_length);