mirror of https://github.com/google/snappy.git
Fix sync
This commit is contained in:
parent
766d24c95e
commit
a60fd602ce
|
@ -959,6 +959,8 @@ emit_remainder:
|
||||||
char* CompressFragmentDoubleHash(const char* input, size_t input_size, char* op,
|
char* CompressFragmentDoubleHash(const char* input, size_t input_size, char* op,
|
||||||
uint16_t* table, const int table_size,
|
uint16_t* table, const int table_size,
|
||||||
uint16_t* table2, const int table_size2) {
|
uint16_t* table2, const int table_size2) {
|
||||||
|
(void)table_size2;
|
||||||
|
assert(table_size == table_size2);
|
||||||
// "ip" is the input pointer, and "op" is the output pointer.
|
// "ip" is the input pointer, and "op" is the output pointer.
|
||||||
const char* ip = input;
|
const char* ip = input;
|
||||||
assert(input_size <= kBlockSize);
|
assert(input_size <= kBlockSize);
|
||||||
|
@ -1791,7 +1793,7 @@ bool GetUncompressedLength(Source* source, uint32_t* result) {
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t Compress(Source* reader, Sink* writer, CompressionOptions options) {
|
size_t Compress(Source* reader, Sink* writer, CompressionOptions options) {
|
||||||
CHECK(options.level == 1 || options.level == 2);
|
assert(options.level == 1 || options.level == 2);
|
||||||
int token = 0;
|
int token = 0;
|
||||||
size_t written = 0;
|
size_t written = 0;
|
||||||
size_t N = reader->Available();
|
size_t N = reader->Available();
|
||||||
|
|
Loading…
Reference in New Issue