Home
last modified time | relevance | path

Searched refs:m_pData (Results 1 – 25 of 30) sorted by relevance

12

/external/pdfium/core/fxcrt/
Dbytestring.cpp151 m_pData.Reset(StringData::Create(pStr, nLen)); in ByteString()
156 m_pData.Reset( in ByteString()
162 ByteString::ByteString(const ByteString& other) : m_pData(other.m_pData) {} in ByteString()
165 m_pData.Swap(other.m_pData); in ByteString()
169 m_pData.Reset(StringData::Create(1)); in ByteString()
170 m_pData->m_String[0] = ch; in ByteString()
178 m_pData.Reset(StringData::Create(stringSrc.unterminated_c_str(), in ByteString()
190 m_pData.Reset(StringData::Create(nNewLen)); in ByteString()
191 m_pData->CopyContents(str1.unterminated_c_str(), str1.GetLength()); in ByteString()
192 m_pData->CopyContentsAt(str1.GetLength(), str2.unterminated_c_str(), in ByteString()
[all …]
Dwidestring.cpp357 WideString::WideString(const WideString& other) : m_pData(other.m_pData) {} in WideString()
360 m_pData.Swap(other.m_pData); in WideString()
365 m_pData.Reset(StringData::Create(pStr, nLen)); in WideString()
369 m_pData.Reset(StringData::Create(1)); in WideString()
370 m_pData->m_String[0] = ch; in WideString()
378 m_pData.Reset(StringData::Create(stringSrc.unterminated_c_str(), in WideString()
391 m_pData.Reset(StringData::Create(nNewLen)); in WideString()
392 m_pData->CopyContents(str1.unterminated_c_str(), str1.GetLength()); in WideString()
393 m_pData->CopyContentsAt(str1.GetLength(), str2.unterminated_c_str(), in WideString()
406 m_pData.Reset(StringData::Create(nNewLen)); in WideString()
[all …]
Dstring_pool_template_unittest.cpp20 EXPECT_EQ(nullptr, null1.m_pData.Get()); in TEST()
21 EXPECT_EQ(nullptr, null2.m_pData.Get()); in TEST()
22 EXPECT_NE(goats1.m_pData, goats2.m_pData); in TEST()
36 EXPECT_EQ(nullptr, interned_null1.m_pData.Get()); in TEST()
37 EXPECT_EQ(nullptr, interned_null2.m_pData.Get()); in TEST()
38 EXPECT_EQ(goats1.m_pData, interned_goats1.m_pData); in TEST()
39 EXPECT_EQ(goats1.m_pData, interned_goats2.m_pData); in TEST()
48 EXPECT_EQ(nullptr, interned_null1.m_pData.Get()); in TEST()
49 EXPECT_EQ(nullptr, interned_null2.m_pData.Get()); in TEST()
50 EXPECT_EQ(goats2.m_pData, reinterned_goats1.m_pData); in TEST()
[all …]
Dbytestring.h65 void clear() { m_pData.Reset(); } in clear()
71 const char* c_str() const { return m_pData ? m_pData->m_String : ""; } in c_str()
76 return m_pData ? reinterpret_cast<const uint8_t*>(m_pData->m_String) in raw_str()
87 const_iterator begin() const { return m_pData ? m_pData->m_String : nullptr; } in begin()
89 return m_pData ? m_pData->m_String + m_pData->m_nDataLength : nullptr; in end()
100 size_t GetLength() const { return m_pData ? m_pData->m_nDataLength : 0; } in GetLength()
102 return m_pData ? strlen(m_pData->m_String) : 0; in GetStringLength()
134 return m_pData ? m_pData->m_String[index] : 0;
199 RetainPtr<StringData> m_pData; variable
Dwidestring.h74 const wchar_t* c_str() const { return m_pData ? m_pData->m_String : L""; } in c_str()
83 const_iterator begin() const { return m_pData ? m_pData->m_String : nullptr; } in begin()
85 return m_pData ? m_pData->m_String + m_pData->m_nDataLength : nullptr; in end()
96 void clear() { m_pData.Reset(); } in clear()
98 size_t GetLength() const { return m_pData ? m_pData->m_nDataLength : 0; } in GetLength()
100 return m_pData ? wcslen(m_pData->m_String) : 0; in GetStringLength()
129 return m_pData ? m_pData->m_String[index] : 0;
202 RetainPtr<StringData> m_pData; variable
Dcfx_bitstream.cpp14 : m_BitPos(0), m_BitSize(dwSize * 8), m_pData(pData) { in CFX_BitStream()
28 const uint8_t* data = m_pData.Get(); in GetBits()
Dcfx_bitstream.h35 UnownedPtr<const uint8_t> m_pData; variable
/external/pdfium/core/fpdfapi/parser/
Dcpdf_simple_parser.cpp12 : m_pData(pData), m_dwSize(dwSize), m_dwCurPos(0) {} in CPDF_SimpleParser()
15 : m_pData(str.raw_str()), m_dwSize(str.GetLength()), m_dwCurPos(0) {} in CPDF_SimpleParser()
24 ch = m_pData[m_dwCurPos++]; in ParseWord()
28 ch = m_pData[m_dwCurPos++]; in ParseWord()
37 ch = m_pData[m_dwCurPos++]; in ParseWord()
44 pStart = m_pData + start_pos; in ParseWord()
50 ch = m_pData[m_dwCurPos++]; in ParseWord()
62 ch = m_pData[m_dwCurPos++]; in ParseWord()
70 ch = m_pData[m_dwCurPos++]; in ParseWord()
84 ch = m_pData[m_dwCurPos++]; in ParseWord()
[all …]
Dcpdf_stream_acc.cpp16 FX_Free(m_pData); in ~CPDF_StreamAcc()
29 m_pData = m_pStream->GetRawData(); in LoadAllData()
45 m_pData = pSrcData; in LoadAllData()
48 estimated_size, bImageAcc, &m_pData, &m_dwSize, in LoadAllData()
50 m_pData = pSrcData; in LoadAllData()
53 if (pSrcData != m_pStream->GetRawData() && pSrcData != m_pData) in LoadAllData()
56 m_bNewBuf = m_pData != m_pStream->GetRawData(); in LoadAllData()
87 std::unique_ptr<uint8_t, FxFreeDeleter> p(m_pData); in DetachData()
88 m_pData = nullptr; in DetachData()
93 memcpy(p.get(), m_pData, m_dwSize); in DetachData()
[all …]
Dcpdf_simple_parser.h32 const uint8_t* m_pData; variable
Dcpdf_stream_acc.h47 uint8_t* m_pData = nullptr; variable
/external/pdfium/core/fpdfapi/edit/
Dcpdf_encryptor.cpp14 : m_pData(nullptr), m_dwSize(0), m_bNewBuf(false) { in CPDF_Encryptor()
19 m_pData = (uint8_t*)src_data; in CPDF_Encryptor()
24 m_pData = FX_Alloc(uint8_t, m_dwSize); in CPDF_Encryptor()
25 pHandler->EncryptContent(objnum, 0, src_data, src_size, m_pData, m_dwSize); in CPDF_Encryptor()
31 FX_Free(m_pData); in ~CPDF_Encryptor()
Dcpdf_flateencoder.cpp25 m_pData = pDestAcc->DetachData(); in CPDF_FlateEncoder()
31 m_pData = const_cast<uint8_t*>(m_pAcc->GetData()); in CPDF_FlateEncoder()
41 m_pData = std::unique_ptr<uint8_t, FxFreeDeleter>(buffer); in CPDF_FlateEncoder()
Dcpdf_encryptor.h23 uint8_t* GetData() const { return m_pData; } in GetData()
26 uint8_t* m_pData;
Dcpdf_flateencoder.h26 uint8_t* GetData() const { return m_pData.Get(); } in GetData()
32 MaybeOwned<uint8_t, FxFreeDeleter> m_pData; variable
/external/swiftshader/third_party/PowerVR_SDK/Tools/
DPVRTResourceFile.cpp124 m_pData(0), in CPVRTResourceFile()
130 m_Handle = s_pLoadFileFunc(Path.c_str(), (char**) &m_pData, m_Size); in CPVRTResourceFile()
131 m_bOpen = (m_pData && m_Size) != 0; in CPVRTResourceFile()
135 …m_bOpen = m_bMemoryFile = CPVRTMemoryFileSystem::GetFile(pszFilename, (const void**)(&m_pData), &m… in CPVRTResourceFile()
149 m_pData(pData), in CPVRTResourceFile()
200 return m_pData; in DataPtr()
218 m_pData = 0; in Close()
DPVRTSkipGraph.h26 T m_pData;
41 CPVRTSkipGraphNode(const T& data) : m_pData(data) in CPVRTSkipGraphNode()
117 return m_pData; in GetData()
DPVRTResourceFile.h105 const char* m_pData; variable
/external/pdfium/core/fxcodec/jbig2/
DJBig2_Image.cpp27 : m_pData(nullptr), m_nWidth(0), m_nHeight(0), m_nStride(0) { in CJBig2_Image()
38 m_pData.Reset(std::unique_ptr<uint8_t, FxFreeDeleter>( in CJBig2_Image()
43 : m_pData(nullptr), m_nWidth(0), m_nHeight(0), m_nStride(0) { in CJBig2_Image()
54 m_pData.Reset(pBuf); in CJBig2_Image()
58 : m_pData(nullptr), in CJBig2_Image()
62 if (other.m_pData) { in CJBig2_Image()
63 m_pData.Reset(std::unique_ptr<uint8_t, FxFreeDeleter>( in CJBig2_Image()
72 if (!m_pData) in getPixel()
87 if (!m_pData) in setPixel()
107 if (!m_pData) in copyLine()
[all …]
DJBig2_Image.h35 uint8_t* data() const { return m_pData.Get(); } in data()
75 MaybeOwned<uint8_t, FxFreeDeleter> m_pData;
/external/pdfium/core/fpdfapi/page/
Dcpdf_contentparser.cpp106 m_pData.Reset(m_pSingleStream->GetData()); in CPDF_ContentParser()
130 m_pData.Reset(std::unique_ptr<uint8_t, FxFreeDeleter>( in Continue()
134 memcpy(m_pData.Get() + pos, stream->GetData(), stream->GetSize()); in Continue()
136 m_pData.Get()[pos++] = ' '; in Continue()
140 m_pData.Reset(m_pSingleStream->GetData()); in Continue()
170 m_pParser->Parse(m_pData.Get() + m_CurrentOffset, in Continue()
/external/pdfium/xfa/fwl/theme/
Dcfwl_listboxtp.cpp31 if (pParams->m_pData) { in DrawBackground()
33 (CFX_RectF*)pParams->m_pData, &pParams->m_matrix); in DrawBackground()
39 &pParams->m_rtPart, pParams->m_pData, &pParams->m_matrix); in DrawBackground()
Dcfwl_carettp.cpp28 &(pParams->m_rtPart), (CXFA_GEColor*)pParams->m_pData, in DrawBackground()
/external/pdfium/xfa/fwl/
Dcfwl_themepart.cpp15 m_pData(nullptr) { in CFWL_ThemePart()
Dcfwl_themepart.h91 void* m_pData; variable

12