Compress-Snappy

 view release on metacpan or  search on metacpan

src/csnappy.h  view on Meta::CPAN

71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
        void *working_memory,
        const int workmem_bytes_power_of_two);
 
/*
 * Reads header of compressed data to get stored length of uncompressed data.
 * REQUIRES: start points to compressed data.
 * REQUIRES: n is length of available compressed data.
 *
 * Returns SNAPPY_E_HEADER_BAD on error.
 * Returns number of bytes read from input on success.
 * Stores decoded length into *result.
 */
int
csnappy_get_uncompressed_length(
        const char *start,
        uint32_t n,
        uint32_t *result);
 
/*
 * Safely decompresses all data from array "src" of length "src_len" containing
 * entire compressed stream (with header) into array "dst" of size "dst_len".



( run in 0.237 second using v1.01-cache-2.11-cpan-00829025b61 )