pipeTo() abstract private method

abstract private pipeTo ( Stream dst, long len ) : void
dst Stream
len long
return void
Beispiel #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; }
 }
Beispiel #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;
     }
 }
Beispiel #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);
            }
Beispiel #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;
       }
 }
Beispiel #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;
 }
Beispiel #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; }
 }