Lines Matching refs:pStr
31 virtual int32_t ReadString(FX_WCHAR* pStr,
35 virtual int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) = 0;
62 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
64 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
86 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
88 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
113 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
117 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override { in WriteString() argument
144 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
148 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override { in WriteString() argument
174 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override { in ReadString() argument
178 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
217 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
219 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
255 int32_t ReadString(FX_WCHAR* pStr, int32_t iMaxLength, bool& bEOS) override;
257 int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
479 int32_t CFGAS_FileStreamImp::ReadString(FX_WCHAR* pStr, in ReadString() argument
483 ASSERT(pStr && iMaxLength > 0); in ReadString()
492 iLen = FXSYS_fread(pStr, 2, iLen, m_hFile); in ReadString()
494 while (*pStr != L'\0' && iCount < iLen) { in ReadString()
495 pStr++, iCount++; in ReadString()
517 int32_t CFGAS_FileStreamImp::WriteString(const FX_WCHAR* pStr, in WriteString() argument
520 ASSERT(pStr && iLength > 0); in WriteString()
521 int32_t iRet = FXSYS_fwrite(pStr, 2, iLength, m_hFile); in WriteString()
594 int32_t CFGAS_FileReadStreamImp::ReadString(FX_WCHAR* pStr, in ReadString() argument
598 ASSERT(pStr && iMaxLength > 0); in ReadString()
599 iMaxLength = ReadData((uint8_t*)pStr, iMaxLength * 2) / 2; in ReadString()
604 while (i < iMaxLength && pStr[i] != L'\0') { in ReadString()
607 bEOS = (m_iPosition >= m_iLength) || pStr[i] == L'\0'; in ReadString()
719 int32_t CFGAS_BufferReadStreamImp::ReadString(FX_WCHAR* pStr, in ReadString() argument
723 ASSERT(pStr && iMaxLength > 0); in ReadString()
724 iMaxLength = ReadData((uint8_t*)pStr, iMaxLength * 2) / 2; in ReadString()
729 while (i < iMaxLength && pStr[i] != L'\0') { in ReadString()
732 bEOS = (m_iPosition >= GetLength()) || pStr[i] == L'\0'; in ReadString()
791 int32_t CFGAS_FileWriteStreamImp::WriteString(const FX_WCHAR* pStr, in WriteString() argument
793 return WriteData((const uint8_t*)pStr, iLength * sizeof(FX_WCHAR)); in WriteString()
854 int32_t CFGAS_BufferStreamImp::ReadString(FX_WCHAR* pStr, in ReadString() argument
858 ASSERT(pStr && iMaxLength > 0); in ReadString()
866 *pStr++ = *pSrc++; in ReadString()
888 int32_t CFGAS_BufferStreamImp::WriteString(const FX_WCHAR* pStr, in WriteString() argument
891 ASSERT(pStr && iLength > 0); in WriteString()
896 FXSYS_memcpy(m_pData + m_iPosition, pStr, iLen * 2); in WriteString()
1046 int32_t CFGAS_TextStream::ReadString(FX_WCHAR* pStr, in ReadString() argument
1049 ASSERT(pStr && iMaxLength > 0); in ReadString()
1057 iLen = m_pStreamImp->ReadData((uint8_t*)pStr, iBytes); in ReadString()
1060 FX_UTF16ToWChar(pStr, iMaxLength); in ReadString()
1064 FX_SwapByteOrder(pStr, iMaxLength); in ReadString()
1068 FX_SwapByteOrder(pStr, iMaxLength); in ReadString()
1086 &iSrc, pStr, &iMaxLength, true); in ReadString()
1099 int32_t CFGAS_TextStream::WriteString(const FX_WCHAR* pStr, int32_t iLength) { in WriteString() argument
1100 ASSERT(pStr && iLength > 0); in WriteString()
1108 encoder.Input(*pStr++); in WriteString()
1306 int32_t CFGAS_Stream::ReadString(FX_WCHAR* pStr, in ReadString() argument
1309 ASSERT(pStr && iMaxLength > 0); in ReadString()
1322 iLen = m_pStreamImp->ReadString(pStr, iLen, bEOS); in ReadString()
1356 int32_t CFGAS_Stream::WriteString(const FX_WCHAR* pStr, int32_t iLength) { in WriteString() argument
1357 ASSERT(pStr && iLength > 0); in WriteString()
1375 iLen = m_pStreamImp->WriteString(pStr, iLen); in WriteString()