System.Xml.XmlBufferReader.GetBuffer C# (CSharp) Method

GetBuffer() public method

public GetBuffer ( int count, int &offset, int &offsetMax ) : byte[]
count int
offset int
offsetMax int
return byte[]
        public byte[] GetBuffer(int count, out int offset, out int offsetMax)
        {
            offset = _offset;
            if (offset <= _offsetMax - count)
            {
                offsetMax = _offset + count;
            }
            else
            {
                TryEnsureBytes(Math.Min(count, _windowOffsetMax - offset));
                offsetMax = _offsetMax;
            }
            return _buffer;
        }

Same methods

XmlBufferReader::GetBuffer ( int count, int &offset ) : byte[]