B2G/gecko/netwerk/test/httpserver/test/test_async_response_sending.js
/**
       * Makes the given number of additional bytes of data previously written
       * to the pipe's output stream available for reading, triggering future
       * notifications when required.
       *
       * @param count : uint
       *   the number of bytes of additional data to make available; must not be
       *   greater than the number of bytes already buffered but not made
       *   available by previous makeReadable calls
       */
Makes the given number of additional bytes of data previously written
to the pipe's output stream available for reading, triggering future
notifications when required.

@param count : uint
the number of bytes of additional data to make available; must not be
greater than the number of bytes already buffered but not made
available by previous makeReadable calls
Makes the given number of additional bytes of data previously written to the pipe ' s output stream available for reading triggering future notifications when required . @param count : uint the number of bytes of additional data to make available ; must not be greater than the number of bytes already buffered but not made available by previous makeReadable calls
function makeReadable(count)
      {
        dumpn("*** [" + this.name + "].makeReadable(" + count + ")");
        do_check_true(Components.isSuccessCode(self._status), "errant call");
        do_check_true(this._readable + count <= self._data.length ||
                      this._readable === Infinity,
                      "increasing readable beyond written amount");
        this._readable += count;
        dumpn("readable: " + this._readable + ", data: " + self._data);
        var waiter = this._waiter;
        if (waiter !== null)
        {
          if (waiter.requestedCount <= this._readable && !waiter.closureOnly)
            this._notify();
        }
      }
function makeReadable ( count ) { dumpn ( "*** [" + this . name + "].makeReadable(" + count + ")" ) ; do_check_true ( Components . isSuccessCode ( self . _status ) , "errant call" ) ; do_check_true ( this . _readable + count <= self . _data . length || this . _readable === Infinity , "increasing readable beyond written amount" ) ; this . _readable += count ; dumpn ( "readable: " + this . _readable + ", data: " + self . _data ) ; var waiter = this . _waiter ; if ( waiter !== null ) { if ( waiter . requestedCount <= this . _readable && ! waiter . closureOnly ) this . _notify ( ) ; } }
Makes the given number of additional bytes of data previously written
 to the pipe's output stream available for reading, triggering future
 notifications when required.
Makes the given number of additional bytes of data previously written to the pipe ' s output stream available for reading triggering future notifications when required .