code: public TempStream copy()
    {
      TempStream newStream = new TempStream();
  
      TempBuffer ptr = _head;
  
      for (; ptr != null; ptr = ptr.next()) {
        TempBuffer newPtr = TempBuffer.create();
        
        if (newStream._tail != null)
          newStream._tail.next(newPtr);
        else
          newStream._head = newPtr;
        newStream._tail = newPtr;
  
        newPtr.write(ptr.buffer(), 0, ptr.length());
      }
  
      return newStream;
    }
docs: Copies the temp stream;