System.Net.FtpDataStream.Read C# (CSharp) Method

Read() public method

public Read ( byte buffer, int offset, int size ) : int
buffer byte
offset int
size int
return int
        public override int Read(byte[] buffer, int offset, int size)
        {
            CheckError();
            int readBytes;
            try
            {
                readBytes = _networkStream.Read(buffer, offset, size);
            }
            catch
            {
                CheckError();
                throw;
            }
            if (readBytes == 0)
            {
                _isFullyRead = true;
                Close();
            }
            return readBytes;
        }