1 // Copyright 2017 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "core/fxcrt/xml/cxml_databufacc.h" 8 CXML_DataBufAcc(const uint8_t * pBuffer,size_t size)9CXML_DataBufAcc::CXML_DataBufAcc(const uint8_t* pBuffer, size_t size) 10 : m_pBuffer(pBuffer), m_dwSize(size), m_dwCurPos(0) {} 11 ~CXML_DataBufAcc()12CXML_DataBufAcc::~CXML_DataBufAcc() {} 13 ReadNextBlock()14bool CXML_DataBufAcc::ReadNextBlock() { 15 if (m_dwCurPos >= m_dwSize) 16 return false; 17 18 m_dwCurPos = m_dwSize; 19 return true; 20 } 21