Add assertion

Change-Id: Ibe2f5f4ad52510247fb4134f433bba4b737d9c33
Split ZCodec::ImplInitBuf into InitCompress, InitDecompress

Change-Id: I2714b1f1dadc74f8501203bc8b0722c56c9c5fb9