private bool BeforeReadService()

in AdlsDotNetSDK/AdlsInputStream.cs [172:196]


        private bool BeforeReadService(byte[] output, int offset, int count)
        {
            if (output == null)
            {
                throw new ArgumentNullException(nameof(output));
            }
            if (_isDisposed)
            {
                throw new ObjectDisposedException("Stream is disposed");
            }
            if (FilePointer >= Entry.Length) return false;
            if (output != null && (offset >= output.Length || offset < 0))
            {
                throw new ArgumentOutOfRangeException(nameof(offset));
            }
            if (output != null && count + offset > output.Length)
            {
                throw new ArgumentOutOfRangeException(nameof(count));
            }
            if (IpStreamLog.IsTraceEnabled)
            {
                IpStreamLog.Trace("ADLFileInputStream, Stream read at offset {0} for file {1} for client {2}", FilePointer, Filename, Client.ClientId);
            }
            return true;
        }