pipeTo() abstract private method

abstract private pipeTo ( Stream dst, long len ) : void
dst Stream
len long
return void
Example #1
0
 public override OutStream writeBuf(Buf other, long n)
 {
     try
     {
         other.pipeTo(p.m_stream, n);
         return(this);
     }
     catch (IOException e) { throw IOErr.make(e).val; }
     catch (System.NotSupportedException e) { throw IOErr.make(e.Message, e).val; }
 }
Example #2
0
 public override OutStream writeBuf(Buf buf, long n)
 {
     try
     {
         buf.pipeTo(outStream, n);
         return(this);
     }
     catch (IOException e)
     {
         throw IOErr.make(e).val;
     }
 }
Example #3
0
            public override OutStream writeBuf(Buf other, long n)
            {
                int len = (int)n;

                p.grow(p.m_pos + len);
                other.pipeTo(p.m_buf, p.m_pos, len);
                p.m_pos += len;
                if (p.m_pos > p.m_size)
                {
                    p.m_size = p.m_pos;
                }
                return(this);
            }
Example #4
0
 public override OutStream writeBuf(Buf buf, long n)
 {
     try
       {
     buf.pipeTo(outStream, n);
     return this;
       }
       catch (IOException e)
       {
     throw IOErr.make(e).val;
       }
 }
Example #5
0
 public override OutStream writeBuf(Buf other, long n)
 {
     int len = (int)n;
     p.grow(p.m_pos+len);
     other.pipeTo(p.m_buf, p.m_pos, len);
     p.m_pos += len;
     if (p.m_pos > p.m_size) p.m_size = p.m_pos;
     return this;
 }
Example #6
0
 public override OutStream writeBuf(Buf other, long n)
 {
     try
     {
       other.pipeTo(p.m_stream, n);
       return this;
     }
     catch (IOException e) { throw IOErr.make(e).val; }
     catch (System.NotSupportedException e) { throw IOErr.make(e.Message, e).val; }
 }