Lines Matching refs:m_iPosition

95   int32_t m_iPosition;  member in __anonc5e9ce980111::CFGAS_BufferStreamImp
110 int32_t GetPosition() override { return m_iPosition; } in GetPosition()
125 int32_t m_iPosition; member in __anonc5e9ce980111::CFGAS_FileReadStreamImp
141 int32_t GetPosition() override { return m_iPosition; } in GetPosition()
156 int32_t m_iPosition; member in __anonc5e9ce980111::CFGAS_BufferReadStreamImp
171 int32_t GetPosition() override { return m_iPosition; } in GetPosition()
184 int32_t m_iPosition; member in __anonc5e9ce980111::CFGAS_FileWriteStreamImp
237 int32_t m_iPosition; member in __anonc5e9ce980111::CFGAS_Stream
542 : m_pFileRead(nullptr), m_iPosition(0), m_iLength(0) {} in CFGAS_FileReadStreamImp()
562 m_iPosition = iOffset; in Seek()
565 m_iPosition += iOffset; in Seek()
568 m_iPosition = m_iLength + iOffset; in Seek()
571 if (m_iPosition < 0) { in Seek()
572 m_iPosition = 0; in Seek()
573 } else if (m_iPosition >= m_iLength) { in Seek()
574 m_iPosition = m_iLength; in Seek()
576 return m_iPosition; in Seek()
579 return m_iPosition >= m_iLength; in IsEOF()
585 if (iBufferSize > m_iLength - m_iPosition) { in ReadData()
586 iBufferSize = m_iLength - m_iPosition; in ReadData()
588 if (m_pFileRead->ReadBlock(pBuffer, m_iPosition, iBufferSize)) { in ReadData()
589 m_iPosition += iBufferSize; in ReadData()
607 bEOS = (m_iPosition >= m_iLength) || pStr[i] == L'\0'; in ReadString()
612 : m_iPosition(0), m_iBufferSize(0) {} in CFGAS_BufferReadStreamImp()
646 m_iPosition = iOffset; in Seek()
649 m_iPosition += iOffset; in Seek()
652 m_iPosition = iLength + iOffset; in Seek()
655 if (m_iPosition < 0) { in Seek()
656 m_iPosition = 0; in Seek()
657 } else if (m_iPosition >= iLength) { in Seek()
658 m_iPosition = iLength; in Seek()
660 return m_iPosition; in Seek()
670 if (m_iPosition >= iLength) { in ReadData()
673 if (iBufferSize > iLength - m_iPosition) { in ReadData()
674 iBufferSize = iLength - m_iPosition; in ReadData()
678 if (m_iPosition < (int32_t)dwBlockOffset) { in ReadData()
685 while (m_iPosition < (int32_t)dwBlockOffset || in ReadData()
686 m_iPosition >= (int32_t)(dwBlockOffset + dwBlockSize)) { in ReadData()
693 if (m_iPosition < (int32_t)dwBlockOffset || in ReadData()
694 m_iPosition >= (int32_t)(dwBlockOffset + dwBlockSize)) { in ReadData()
698 uint32_t dwOffsetTmp = m_iPosition - dwBlockOffset; in ReadData()
716 m_iPosition += dwOffsetTmp; in ReadData()
732 bEOS = (m_iPosition >= GetLength()) || pStr[i] == L'\0'; in ReadString()
736 : m_pFileWrite(nullptr), m_iPosition(0) {} in CFGAS_FileWriteStreamImp()
746 m_iPosition = pFileWrite->GetSize(); in LoadFileWrite()
762 m_iPosition = iOffset; in Seek()
765 m_iPosition += iOffset; in Seek()
768 m_iPosition = iLength + iOffset; in Seek()
771 if (m_iPosition < 0) { in Seek()
772 m_iPosition = 0; in Seek()
773 } else if (m_iPosition >= iLength) { in Seek()
774 m_iPosition = iLength; in Seek()
776 return m_iPosition; in Seek()
779 return m_iPosition >= GetLength(); in IsEOF()
786 if (m_pFileWrite->WriteBlock(pBuffer, m_iPosition, iBufferSize)) { in WriteData()
787 m_iPosition += iBufferSize; in WriteData()
801 : m_pData(nullptr), m_iTotalSize(0), m_iPosition(0), m_iLength(0) {} in CFGAS_BufferStreamImp()
810 m_iPosition = 0; in LoadBuffer()
821 m_iPosition = iOffset; in Seek()
823 m_iPosition += iOffset; in Seek()
825 m_iPosition = m_iLength + iOffset; in Seek()
827 if (m_iPosition > m_iLength) { in Seek()
828 m_iPosition = m_iLength; in Seek()
830 if (m_iPosition < 0) { in Seek()
831 m_iPosition = 0; in Seek()
833 return m_iPosition; in Seek()
837 return m_iPosition; in GetPosition()
841 return m_iPosition >= m_iLength; in IsEOF()
846 int32_t iLen = std::min(m_iLength - m_iPosition, iBufferSize); in ReadData()
850 FXSYS_memcpy(pBuffer, m_pData + m_iPosition, iLen); in ReadData()
851 m_iPosition += iLen; in ReadData()
859 int32_t iLen = std::min((m_iLength - m_iPosition) / 2, iMaxLength); in ReadString()
863 const FX_WCHAR* pSrc = (const FX_WCHAR*)(FX_CHAR*)(m_pData + m_iPosition); in ReadString()
869 m_iPosition += iCount * 2; in ReadString()
870 bEOS = (*pSrc == L'\0') || (m_iPosition >= m_iLength); in ReadString()
877 int32_t iLen = std::min(m_iTotalSize - m_iPosition, iBufferSize); in WriteData()
881 FXSYS_memcpy(m_pData + m_iPosition, pBuffer, iLen); in WriteData()
882 m_iPosition += iLen; in WriteData()
883 if (m_iPosition > m_iLength) { in WriteData()
884 m_iLength = m_iPosition; in WriteData()
892 int32_t iLen = std::min((m_iTotalSize - m_iPosition) / 2, iLength); in WriteString()
896 FXSYS_memcpy(m_pData + m_iPosition, pStr, iLen * 2); in WriteString()
897 m_iPosition += iLen * 2; in WriteString()
898 if (m_iPosition > m_iLength) { in WriteString()
899 m_iLength = m_iPosition; in WriteString()
1122 m_iPosition(0), in CFGAS_Stream()
1251 return m_iPosition = m_pStreamImp->Seek(eSeek, iOffset); in Seek()
1256 m_iPosition = iPosition; in Seek()
1258 m_iPosition += iOffset; in Seek()
1260 m_iPosition = iEnd + iOffset; in Seek()
1262 if (m_iPosition > iEnd) { in Seek()
1263 m_iPosition = iEnd; in Seek()
1265 if (m_iPosition < m_iStart) { in Seek()
1266 m_iPosition = m_iStart; in Seek()
1268 return m_iPosition - m_iStart; in Seek()
1276 return m_iPosition = m_pStreamImp->GetPosition(); in GetPosition()
1278 return m_iPosition - m_iStart; in GetPosition()
1288 return m_iPosition >= m_iStart + m_iLength; in IsEOF()
1295 int32_t iLen = std::min(m_iStart + m_iLength - m_iPosition, iBufferSize); in ReadData()
1299 if (m_pStreamImp->GetPosition() != m_iPosition) { in ReadData()
1300 m_pStreamImp->Seek(FX_STREAMSEEK_Begin, m_iPosition); in ReadData()
1303 m_iPosition = m_pStreamImp->GetPosition(); in ReadData()
1314 int32_t iLen = iEnd - m_iPosition; in ReadString()
1319 if (m_pStreamImp->GetPosition() != m_iPosition) { in ReadString()
1320 m_pStreamImp->Seek(FX_STREAMSEEK_Begin, m_iPosition); in ReadString()
1323 m_iPosition = m_pStreamImp->GetPosition(); in ReadString()
1324 if (iLen > 0 && m_iPosition >= iEnd) { in ReadString()
1340 iLen = std::min(m_iStart + m_iTotalSize - m_iPosition, iBufferSize); in WriteData()
1346 if (m_pStreamImp->GetPosition() != m_iPosition) { in WriteData()
1347 m_pStreamImp->Seek(FX_STREAMSEEK_Begin, m_iPosition); in WriteData()
1350 m_iPosition = m_pStreamImp->GetPosition(); in WriteData()
1351 if (m_iPosition > iEnd) { in WriteData()
1352 m_iLength = m_iPosition - m_iStart; in WriteData()
1366 iLen = std::min((m_iStart + m_iTotalSize - m_iPosition) / 2, iLength); in WriteString()
1372 if (m_pStreamImp->GetPosition() != m_iPosition) { in WriteString()
1373 m_pStreamImp->Seek(FX_STREAMSEEK_Begin, m_iPosition); in WriteString()
1376 m_iPosition = m_pStreamImp->GetPosition(); in WriteString()
1377 if (m_iPosition > iEnd) { in WriteString()
1378 m_iLength = m_iPosition - m_iStart; in WriteString()
1450 pShared->m_iPosition = iStart; in CreateSharedStream()