nl_tokens: Write out up to max words ( negated ) returns how many were written
pl_tokens: public int dischargeNegated ( BitmapStorage32 container , int <mask> ) { int index = 0 ; while ( ( index < max ) && ( size ( ) > 0 ) ) { // first run int pl = getRunningLength ( ) ; if ( index + pl > max ) { pl = max - index ; } container . addStreamOfEmptyWords ( ! getRunningBit ( ) , pl ) ; index += pl ; int pd = getNumberOfLiteralWords ( ) ; if ( pd + index > max ) { pd = max - index ; } writeNegatedLiteralWords ( pd , container ) ; discardFirstWords ( pl + pd ) ; index += pd ; } return index ; }