It really looks wrong but I think it is a "not well named" function problem only. Inside the compressor::buflen() it returns with value of size32_t outlen data member, where (if I see well) the compressor counts compressed out bytes.