nl_tokens: Gets the size of the LZ window buffer that needs to be allocated .
pl_tokens: private static int getBufSize ( int dictSize , int extraSizeBefore , int extraSizeAfter , int matchLenMax ) { int keepSizeBefore = extraSizeBefore + dictSize ; int keepSizeAfter = extraSizeAfter + matchLenMax ; int reserveSize = Math . <mask> ( dictSize / 2 + ( 256 << 10 ) , 512 << 20 ) ; return keepSizeBefore + keepSizeAfter + reserveSize ; }