Пример #1
0
        public int Read(byte[] buffer, int offset, int count)
        {
            int read = _buffer.Read(buffer, offset, count);

            if (FillWithZeros && read < count)
            {
                Array.Clear(buffer, offset + read, count - read);
            }

            return(FillWithZeros ? count : read);
        }