void reset(){ if(mode==BTREE || mode==DTREE){ } if(mode==CODES){ codes.free(z); } mode=TYPE; bitk=0; bitb=0; read=write=0; if(check){ z.adler.reset(); } }
void reset(){ if(mode==BTREE || mode==DTREE){ } if(mode==CODES){ codes.free(z); } mode=TYPE; bitk=0; bitb=0; read=write=0; if(check){ z.adler.reset(); } }
void reset(){ if(mode==BTREE || mode==DTREE){ } if(mode==CODES){ codes.free(z); } mode=TYPE; bitk=0; bitb=0; read=write=0; if(check){ z.adler.reset(); } }
int deflateReset(){ strm.total_in = strm.total_out = 0; strm.msg = null; // strm.data_type = Z_UNKNOWN; pending = 0; pending_out = 0; if(wrap < 0){ wrap = -wrap; } status = (wrap==0) ? BUSY_STATE : INIT_STATE; strm.adler.reset(); last_flush = Z_NO_FLUSH; tr_init(); lm_init(); return Z_OK; }
int deflateReset(){ strm.total_in = strm.total_out = 0; strm.msg = null; // strm.data_type = Z_UNKNOWN; pending = 0; pending_out = 0; if(wrap < 0){ wrap = -wrap; } status = (wrap==0) ? BUSY_STATE : INIT_STATE; strm.adler.reset(); last_flush = Z_NO_FLUSH; tr_init(); lm_init(); return Z_OK; }
int deflateReset(){ strm.total_in = strm.total_out = 0; strm.msg = null; // strm.data_type = Z_UNKNOWN; pending = 0; pending_out = 0; if(wrap < 0){ wrap = -wrap; } status = (wrap==0) ? BUSY_STATE : INIT_STATE; strm.adler.reset(); last_flush = Z_NO_FLUSH; tr_init(); lm_init(); return Z_OK; }
int inflateSetDictionary(byte[] dictionary, int dictLength){ if(z==null || (this.mode != DICT0 && this.wrap != 0)){ return Z_STREAM_ERROR; } int index=0; int length = dictLength; if(this.mode==DICT0){ long adler_need=z.adler.getValue(); z.adler.reset(); z.adler.update(dictionary, 0, dictLength); if(z.adler.getValue()!=adler_need){ return Z_DATA_ERROR; } } z.adler.reset(); if(length >= (1<<this.wbits)){ length = (1<<this.wbits)-1; index=dictLength - length; } this.blocks.set_dictionary(dictionary, index, length); this.mode = BLOCKS; return Z_OK; }
int inflateSetDictionary(byte[] dictionary, int dictLength){ if(z==null || (this.mode != DICT0 && this.wrap != 0)){ return Z_STREAM_ERROR; } int index=0; int length = dictLength; if(this.mode==DICT0){ long adler_need=z.adler.getValue(); z.adler.reset(); z.adler.update(dictionary, 0, dictLength); if(z.adler.getValue()!=adler_need){ return Z_DATA_ERROR; } } z.adler.reset(); if(length >= (1<<this.wbits)){ length = (1<<this.wbits)-1; index=dictLength - length; } this.blocks.set_dictionary(dictionary, index, length); this.mode = BLOCKS; return Z_OK; }
int inflateSetDictionary(byte[] dictionary, int dictLength){ if(z==null || (this.mode != DICT0 && this.wrap != 0)){ return Z_STREAM_ERROR; } int index=0; int length = dictLength; if(this.mode==DICT0){ long adler_need=z.adler.getValue(); z.adler.reset(); z.adler.update(dictionary, 0, dictLength); if(z.adler.getValue()!=adler_need){ return Z_DATA_ERROR; } } z.adler.reset(); if(length >= (1<<this.wbits)){ length = (1<<this.wbits)-1; index=dictLength - length; } this.blocks.set_dictionary(dictionary, index, length); this.mode = BLOCKS; return Z_OK; }
z.adler.reset(this.need); this.mode = DICT0; return Z_NEED_DICT;
z.adler.reset(this.need); this.mode = DICT0; return Z_NEED_DICT;
z.adler.reset(this.need); this.mode = DICT0; return Z_NEED_DICT;