private void SetBuffer(Stream stream, byte[] buffer, int offset, int count, IXmlDictionary dictionary, XmlBinaryReaderSession session) { _stream = stream; _buffer = buffer; _offsetMin = offset; _offset = offset; _offsetMax = offset + count; _dictionary = dictionary; _session = session; }