code: function flushBuffer() {
            if (fileBuffer.length > 0 && original_fnAdd) {
              var tempBuffer = fileBuffer;
              fileBuffer = [];
  
              original_fnAdd(null, tempBuffer);
            }
  
            flushTimer = null;
          }
docs: Setup the buffer timer to flush contents