= r e q u i r e ( " f f i " ) f f i . c d e f [ [ u n s i g n e d l o n g c o m p r e s s B o u n d ( u n s i g n e d l o n g s o u r c e L e n ) ; i n t c o m p r e s s 2 ( u i n t 8 _ t * d e s t , u n s i g n e d l o n g * d e s t L e n , c o n s t u i n t 8 _ t * s o u r c e , u n s i g n e d l o n g s o u r c e L e n , i n t l e v e l ) ; ] ] l o c a l z l i b = f f i . l o a d ( " z " ) l o c a l c o m p r e s s = f u n c t i o n ( t x t ) l o c a l n = z l i b . c o m p r e s s B o u n d ( # t x t ) l o c a l b u f = f f i . n e w ( " u i n t 8 _ t [ ? ] " , n ) l o c a l b u f l e n = f f i . n e w ( " u n s i g n e d l o n g [ 1 ] " , n ) a s s e r t ( z l i b . c o m p r e s s 2 ( b u f , b u f l e n , t x t , # t x t , 9 ) = = 0 ) r e t u r n f f i . s t r i n g ( b u f , b u f l e n [ 0 ] ) e n d l o c a l t x t = s t r i n g . r e p ( " a b c d " , 1 0 0 0 ) l o c a l c = c o m p r e s s ( t x t )