public void SetBuffer(Stream stream, IXmlDictionary dictionary, XmlBinaryReaderSession session) { if (_streamBuffer == null) { _streamBuffer = new byte[128]; } SetBuffer(stream, _streamBuffer, 0, 0, dictionary, session); _windowOffset = 0; _windowOffsetMax = _streamBuffer.Length; }